/src/main/java/org/htmlunit/html/HtmlImage.java
final HtmlPage htmlPage = getPage( ) ;
final HtmlPage htmlPage = getHtmlPageOrNull ( ) ;
doOnLoad(); super.onAddedToPage(); } @Override protected void setAttributeNS(final String namespaceURI, final String qualifiedName, final String value, final boolean notifyAttributeChangeListeners, final boolean notifyMutationObservers) { <extra_id_0> final String qualifiedNameLC = org.htmlunit.util.StringUtils.toRootLowerCase(qualifiedName); if (SRC_ATTRIBUTE.equals(qualifiedNameLC) && value != ATTRIBUTE_NOT_DEFINED && htmlPage != null) { final String oldValue = getAttributeNS(namespaceURI, qualifiedNameLC); if (!oldValue.equals(value)) { super.setAttributeNS(namespaceURI, qualifiedNameLC, value, notifyAttributeChangeListeners, notifyMutationObservers);