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

Method onAddedToPage

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

Lifecycle method invoked whenever a node is added to a page. Intended to be overridden by nodes which need to perform custom logic when they are added to a page. This method is recursive, so if you override it, please be sure to call super.onAddedToPage() .

()

Source from the content-addressed store, hash-verified

1297 * be sure to call <code>super.onAddedToPage()</code>.
1298 */
1299 protected void onAddedToPage() {
1300 if (firstChild_ != null) {
1301 for (final DomNode child : getChildren()) {
1302 child.onAddedToPage();
1303 }
1304 }
1305 }
1306
1307 /**
1308 * Lifecycle method invoked after a node and all its children have been added to a page, during

Callers 1

notifyNodeAddedMethod · 0.45

Calls 1

getChildrenMethod · 0.95

Tested by

no test coverage detected