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

Method toggleClass

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

Toggle a class name on this element's class attribute: if present, remove it; otherwise add it. @param className class name to toggle @return this element

(String className)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testClassUpdatesMethod · 0.95

Calls 5

notNullMethod · 0.95
classNamesMethod · 0.95
containsMethod · 0.45
removeMethod · 0.45
addMethod · 0.45

Tested by 1

testClassUpdatesMethod · 0.76