MCPcopy Create free account
hub / github.com/code4craft/jsoup-learning / attr

Method attr

src/main/java/org/jsoup/nodes/Node.java:70–78  ·  view source on GitHub ↗

Get an attribute's value by its key. To get an absolute URL from an attribute that may be a relative URL, prefix the key with abs , which is a shortcut to the #absUrl method. E.g.: String url = a.attr("abs:href"); @param attribute

(String attributeKey)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 6

absUrlMethod · 0.95
DocumentTypeMethod · 0.45
outerHtmlHeadMethod · 0.45
submitMethod · 0.45
formDataMethod · 0.45
mainMethod · 0.45

Calls 5

notNullMethod · 0.95
absUrlMethod · 0.95
hasKeyMethod · 0.80
getMethod · 0.65
putMethod · 0.45

Tested by

no test coverage detected