/src/main/java/org/htmlunit/html/HtmlElement.java
final HtmlForm form = getEnclosingForm( ) ;final HtmlPage htmlPage = getHtmlPageOrNull( ) ;
final HtmlPage htmlPage = getHtmlPageOrNull ( ) ;
@Override public void removeAttribute(final String attributeName) { final String value = getAttribute(attributeName); if (ATTRIBUTE_NOT_DEFINED == value) { return; } <extra_id_0> if (htmlPage != null) { htmlPage.removeMappedElement(this); } super.removeAttribute(attributeName); if (htmlPage != null) { htmlPage.addMappedElement(this);