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

Method hasAttribute

src/main/java/org/htmlunit/html/DomElement.java:194–197  ·  view source on GitHub ↗

Returns whether the attribute specified by name has a value. @param attributeName the name of the attribute @return true if an attribute with the given name is specified on this element or has a default value, false otherwise.

(final String attributeName)

Source from the content-addressed store, hash-verified

192 * default value, false otherwise.
193 */
194 @Override
195 public boolean hasAttribute(final String attributeName) {
196 return attributes_.containsKey(attributeName);
197 }
198
199 /**
200 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>

Callers 15

isOpenMethod · 0.45
HtmlCheckBoxInputMethod · 0.45
isDisabledMethod · 0.45
isReadOnlyMethod · 0.45
isDisabledMethod · 0.45
isReadOnlyMethod · 0.45
HtmlRadioButtonInputMethod · 0.45
isDisabledMethod · 0.45
isDisabledMethod · 0.45
isReadOnlyMethod · 0.45
isFormNoValidateMethod · 0.45

Calls 1

containsKeyMethod · 0.45

Tested by

no test coverage detected