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

Method setInnerHtml

src/main/java/org/htmlunit/html/DomElement.java:1687–1694  ·  view source on GitHub ↗

Replaces all child elements of this element with the supplied value parsed as html. @param source the new value for the contents of this element @throws SAXException in case of error @throws IOException in case of error

(final String source)

Source from the content-addressed store, hash-verified

1685 * @throws IOException in case of error
1686 */
1687 public void setInnerHtml(final String source) throws SAXException, IOException {
1688 removeAllChildren();
1689 getPage().clearComputedStylesUpToRoot(this);
1690
1691 if (source != null) {
1692 parseHtmlSnippet(source);
1693 }
1694 }
1695}
1696
1697/**

Callers 1

setInnerHTMLMethod · 0.95

Calls 4

getPageMethod · 0.65
removeAllChildrenMethod · 0.45
parseHtmlSnippetMethod · 0.45

Tested by

no test coverage detected