/src/main/java/org/htmlunit/html/HtmlElement.java
final String qualifiedNameLC = tagName.toLowerCase( Locale.ROOT) ;
final String tagNameLC = tagName.toLowerCase ( Locale.ROOT ) ;
} catch (final NumberFormatException e) { return null; } } public HtmlElement getEnclosingElement(final String tagName) { <extra_id_0> for (DomNode currentNode = getParentNode(); currentNode != null; currentNode = currentNode.getParentNode()) { if (currentNode instanceof HtmlElement && currentNode.getNodeName().equals(tagNameLC)) { return (HtmlElement) currentNode; } } return null;