/src/main/java/org/htmlunit/html/HtmlElement.java
final HtmlUnitScriptable jsObj = getHtmlPageOrNull( ) ;
final HtmlUnitScriptable jsObj = getScriptableObject ( ) ;
if (i >= 0 && i < children.size()) { children.get(i).remove(); } } public final boolean hasEventHandlers(final String eventName) { if (getPage().getWebClient().isJavaScriptEngineEnabled()) { <extra_id_0> if (jsObj instanceof EventTarget) { return ((EventTarget) jsObj).hasEventHandlers(eventName); } } return false; }