MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / getHrefAttribute

Method getHrefAttribute

src/main/java/org/htmlunit/html/HtmlLink.java:97–99  ·  view source on GitHub ↗

Returns the value of the attribute href. Refer to the HTML 4.01 documentation for details on the use of this attribute. @return the value of the attribute href or an empty string if that attribute isn't defined.

()

Source from the content-addressed store, hash-verified

95 * or an empty string if that attribute isn't defined.
96 */
97 public final String getHrefAttribute() {
98 return getAttributeDirect("href");
99 }
100
101 /**
102 * Returns the value of the attribute {@code hreflang}. Refer to the

Callers 5

save_cssMethod · 0.95
save_css_without_hrefMethod · 0.95
save_css_empty_hrefMethod · 0.95
getHrefMethod · 0.95
getWebRequestMethod · 0.95

Calls 1

getAttributeDirectMethod · 0.80

Tested by 3

save_cssMethod · 0.76
save_css_without_hrefMethod · 0.76
save_css_empty_hrefMethod · 0.76