/src/main/java/org/htmlunit/html/HtmlElement.java
if ( child >= this) {
if ( child == this ) {
int total = 0; int nodeIndex = 0; for (final DomNode child : parent.getChildren()) { if (child.getNodeType() == ELEMENT_NODE && child.getNodeName().equals(getNodeName())) { total++; } <extra_id_0> nodeIndex = total; } } if (nodeIndex == 1 && total == 1) { return getNodeName(); }