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

Method notifyNodeAdded

src/main/java/org/htmlunit/html/HtmlPage.java:1798–1821  ·  view source on GitHub ↗

INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK. @param node the node that has just been added to the document

(final DomNode node)

Source from the content-addressed store, hash-verified

1796 * @param node the node that has just been added to the document
1797 */
1798 void notifyNodeAdded(final DomNode node) {
1799 if (node instanceof DomElement element1) {
1800 addMappedElement(element1, true);
1801
1802 if (node instanceof BaseFrameElement element) {
1803 frameElements_.add(element);
1804 }
1805
1806 if (node.getFirstChild() != null) {
1807 for (final Iterator<HtmlElement> iterator = node.new DescendantHtmlElementsIterator();
1808 iterator.hasNext();) {
1809 final HtmlElement child = iterator.next();
1810 if (child instanceof BaseFrameElement element) {
1811 frameElements_.add(element);
1812 }
1813 }
1814 }
1815
1816 if ("base".equals(node.getNodeName())) {
1817 calculateBase();
1818 }
1819 }
1820 node.onAddedToPage();
1821 }
1822
1823 /**
1824 * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>

Callers 1

fireAdditionMethod · 0.80

Calls 9

addMappedElementMethod · 0.95
hasNextMethod · 0.95
nextMethod · 0.95
calculateBaseMethod · 0.95
addMethod · 0.45
getFirstChildMethod · 0.45
equalsMethod · 0.45
getNodeNameMethod · 0.45
onAddedToPageMethod · 0.45

Tested by

no test coverage detected