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

Method setTextContent

src/main/java/org/htmlunit/html/DomNode.java:571–577  ·  view source on GitHub ↗

{@inheritDoc}

(final String textContent)

Source from the content-addressed store, hash-verified

569 * {@inheritDoc}
570 */
571 @Override
572 public void setTextContent(final String textContent) {
573 removeAllChildren();
574 if (textContent != null && !textContent.isEmpty()) {
575 appendChild(new DomText(getPage(), textContent));
576 }
577 }
578
579 /**
580 * {@inheritDoc}

Callers 3

setTextMethod · 0.95
handleCharactersMethod · 0.45
setTextMethod · 0.45

Calls 4

removeAllChildrenMethod · 0.95
appendChildMethod · 0.95
getPageMethod · 0.95
isEmptyMethod · 0.65

Tested by

no test coverage detected