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

Method notifyNodeRemoved

src/main/java/org/htmlunit/html/HtmlPage.java:1828–1845  ·  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 removed from the tree

(final DomNode node)

Source from the content-addressed store, hash-verified

1826 * @param node the node that has just been removed from the tree
1827 */
1828 void notifyNodeRemoved(final DomNode node) {
1829 if (node instanceof HtmlElement element) {
1830 removeMappedElement(element, true, true);
1831
1832 if (node instanceof BaseFrameElement) {
1833 frameElements_.remove(node);
1834 }
1835 for (final HtmlElement child : node.getHtmlElementDescendants()) {
1836 if (child instanceof BaseFrameElement) {
1837 frameElements_.remove(child);
1838 }
1839 }
1840
1841 if ("base".equals(node.getNodeName())) {
1842 calculateBase();
1843 }
1844 }
1845 }
1846
1847 /**
1848 * Adds an element to the ID and name maps, if necessary.

Callers 1

fireRemovalMethod · 0.80

Calls 6

removeMappedElementMethod · 0.95
calculateBaseMethod · 0.95
removeMethod · 0.45
equalsMethod · 0.45
getNodeNameMethod · 0.45

Tested by

no test coverage detected