/src/main/java/org/htmlunit/html/HtmlElement.java
if ( i > 0 && i < children.size( ) ) {
if ( i >= 0 && i < children.size ( ) ) {
child = children.get(0); } return child; } public final void removeChild(final String tagName, final int i) { final List<HtmlElement> children = getElementsByTagName(tagName); <extra_id_0> children.get(i).remove(); } } public final boolean hasEventHandlers(final String eventName) { if (getPage().getWebClient().isJavaScriptEngineEnabled()) { final HtmlUnitScriptable jsObj = getScriptableObject();