MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / setAttributeNS

Method setAttributeNS

src/main/java/org/htmlunit/html/HtmlInput.java:627–647  ·  view source on GitHub ↗

{@inheritDoc}

(final String namespaceURI, final String qualifiedName, final String attributeValue,
            final boolean notifyAttributeChangeListeners, final boolean notifyMutationObservers)

Source from the content-addressed store, hash-verified

625 * {@inheritDoc}
626 */
627 @Override
628 protected void setAttributeNS(final String namespaceURI, final String qualifiedName, final String attributeValue,
629 final boolean notifyAttributeChangeListeners, final boolean notifyMutationObservers) {
630 final String qualifiedNameLC = StringUtils.toRootLowerCase(qualifiedName);
631
632 if (TYPE_ATTRIBUTE.equals(qualifiedNameLC)) {
633 changeType(attributeValue, true);
634 return;
635 }
636
637 if (VALUE_ATTRIBUTE.equals(qualifiedNameLC)) {
638 super.setAttributeNS(namespaceURI, qualifiedNameLC, attributeValue, notifyAttributeChangeListeners,
639 notifyMutationObservers);
640
641 valueAttributeChanged(attributeValue, isValueDirty_);
642 return;
643 }
644
645 super.setAttributeNS(namespaceURI, qualifiedNameLC, attributeValue, notifyAttributeChangeListeners,
646 notifyMutationObservers);
647 }
648
649 /**
650 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>

Callers 1

changeTypeMethod · 0.45

Calls 4

toRootLowerCaseMethod · 0.95
changeTypeMethod · 0.95
valueAttributeChangedMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected