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

Method basicRemove

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

Cuts off all relationships this node has with siblings and parents.

()

Source from the content-addressed store, hash-verified

1166 * Cuts off all relationships this node has with siblings and parents.
1167 */
1168 protected void basicRemove() {
1169 basicDetach();
1170
1171 nextSibling_ = null;
1172 previousSibling_ = null;
1173 parent_ = null;
1174 attachedToPage_ = false;
1175 for (final DomNode descendant : getDescendants()) {
1176 descendant.attachedToPage_ = false;
1177 }
1178 }
1179
1180 /**
1181 * Cuts off all relationships this node has with siblings and parents.

Callers 2

detachMethod · 0.95

Calls 2

basicDetachMethod · 0.95
getDescendantsMethod · 0.95

Tested by

no test coverage detected