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

Method appendElement

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

Create a new element by tag name, and add it as the last child. @param tagName the name of the tag (e.g. div). @return the new element, to allow you to add content to it, e.g.: parent.appendElement("h1").attr("id", "header").text("Welcome");

(String tagName)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

testAddNewElementMethod · 0.95
createShellMethod · 0.95
normaliseMethod · 0.95
titleMethod · 0.80

Calls 3

valueOfMethod · 0.95
appendChildMethod · 0.95
baseUriMethod · 0.80

Tested by 1

testAddNewElementMethod · 0.76