MCPcopy Create free account
hub / github.com/microsoft/SandDance / getSiblingNode

Function getSiblingNode

docs/external/js/react-dom.development.js:6801–6809  ·  view source on GitHub ↗

* Get the next sibling within a container. This will walk up the * DOM if a node's siblings have been exhausted. * * @param {DOMElement|DOMTextNode} node * @return {?DOMElement|DOMTextNode}

(node)

Source from the content-addressed store, hash-verified

6799
6800
6801 function getSiblingNode(node) {
6802 while (node) {
6803 if (node.nextSibling) {
6804 return node.nextSibling;
6805 }
6806
6807 node = node.parentNode;
6808 }
6809 }
6810 /**
6811 * Get object describing the nodes which contain characters at offset.
6812 *

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected