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

Method className

src/main/java/org/jsoup/nodes/Element.java:954–956  ·  view source on GitHub ↗

Gets the literal value of this element's "class" attribute, which may include multiple class names, space separated. (E.g. on <div class="header gray"> returns, " header gray ") @return The literal class attribute, or empty string if no class attribute set.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 5

testClassDomMethodsMethod · 0.95
testClassUpdatesMethod · 0.95
classNamesMethod · 0.95
classesMethod · 0.80
testPseudoContainsMethod · 0.80

Calls 1

attrMethod · 0.95

Tested by 4

testClassDomMethodsMethod · 0.76
testClassUpdatesMethod · 0.76
classesMethod · 0.64
testPseudoContainsMethod · 0.64