/** * {@inheritDoc} */ @Override public Attr setAttributeNode(final Attr attribute) { final String qualifiedName = attribute.getName(); String attributeValue = null; if ("src".equals(qualifiedName)) { attributeValue = attribute.getValue().trim(); } final Attr result = super.setAttributeNode(attribute); if ("src".equals(qualifiedName) && !WebClient.ABOUT_BLANK.equals(attributeValue)) { if (isAttachedToPage()) { loadSrc(); } else { loadSrcWhenAddedToPage_ = true; } } return result; }
/** * {@inheritDoc} */ @Override protected void setAttributeNS(final String namespaceURI, final String qualifiedName, String attributeValue, final boolean notifyAttributeChangeListeners, final boolean notifyMutationObserver) { if (null != attributeValue && "src".equals(qualifiedName)) { attributeValue = attributeValue.trim(); } super.setAttributeNS(namespaceURI, qualifiedName, attributeValue, notifyAttributeChangeListeners, notifyMutationObserver); if ("src".equals(qualifiedName) && WebClient.ABOUT_BLANK != attributeValue) { if (isAttachedToPage()) { loadSrc(); } else { loadSrcWhenAddedToPage_ = true; } } }
/** * {@inheritDoc} */ @Override public Attr setAttributeNode(final Attr attribute) { final String qualifiedName = attribute.getName(); String attributeValue = null; if (SRC_ATTRIBUTE.equals(qualifiedName)) { attributeValue = attribute.getValue().trim(); } final Attr result = super.setAttributeNode(attribute); if (SRC_ATTRIBUTE.equals(qualifiedName) && !WebClient.ABOUT_BLANK.equals(attributeValue)) { if (isAttachedToPage()) { loadSrc(); } else { loadSrcWhenAddedToPage_ = true; } } return result; }
/** * {@inheritDoc} */ @Override protected void setAttributeNS(final String namespaceURI, final String qualifiedName, String attributeValue, final boolean notifyAttributeChangeListeners, final boolean notifyMutationObserver) { if (null != attributeValue && SRC_ATTRIBUTE.equals(qualifiedName)) { attributeValue = attributeValue.trim(); } super.setAttributeNS(namespaceURI, qualifiedName, attributeValue, notifyAttributeChangeListeners, notifyMutationObserver); if (SRC_ATTRIBUTE.equals(qualifiedName) && WebClient.ABOUT_BLANK != attributeValue) { if (isAttachedToPage()) { loadSrc(); } else { loadSrcWhenAddedToPage_ = true; } } }