MCPcopy Create free account
hub / github.com/angular/angular / getNextSibling

Function getNextSibling

packages/core/src/util/dom.ts:63–72  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

61 * clobbering of the `nextSibling` property happening.
62 */
63export function getNextSibling(node: Node): Node | null {
64 const nextSibling = node.nextSibling;
65 // Make sure there is no `nextSibling` clobbering: navigating to
66 // the next sibling and going back to the previous one should result
67 // in the original node.
68 if (nextSibling && node !== nextSibling.previousSibling) {
69 throw clobberedElementError(nextSibling);
70 }
71 return nextSibling;
72}
73
74/**
75 * Retrieves first child node and makes sure that there is no

Callers 10

sanitizeChildrenMethod · 0.90
walkIcuTreeFunction · 0.90
locateNextRNodeFunction · 0.90
siblingAfterFunction · 0.90
navigateToNodeFunction · 0.90
skipSiblingNodesFunction · 0.90
collectI18nNodesFromDomFunction · 0.90
removeDehydratedViewFunction · 0.90

Calls 1

clobberedElementErrorFunction · 0.85

Tested by

no test coverage detected