MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / parseHtmlSnippet

Method parseHtmlSnippet

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

INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. Parses the specified HTML source code, appending the resulting content at the specified target location. @param source the HTML code extract to parse @throws IOException in case of error @throws

(final String source)

Source from the content-addressed store, hash-verified

1136 * @throws SAXException in case of error
1137 */
1138 public void parseHtmlSnippet(final String source) throws SAXException, IOException {
1139 final WebClient webClient = getPage().getWebClient();
1140 webClient.getPageCreator().getHtmlParser().parseFragment(webClient, this, this, source, false);
1141 }
1142
1143 /**
1144 * Removes this node from all relationships with other nodes.

Callers 1

setInnerHtmlMethod · 0.45

Calls 5

getPageMethod · 0.95
getPageCreatorMethod · 0.95
getWebClientMethod · 0.65
parseFragmentMethod · 0.65
getHtmlParserMethod · 0.65

Tested by

no test coverage detected