* 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)
| 5522 | * @return {?DOMElement|DOMTextNode} |
| 5523 | */ |
| 5524 | function getSiblingNode(node) { |
| 5525 | while (node) { |
| 5526 | if (node.nextSibling) { |
| 5527 | return node.nextSibling; |
| 5528 | } |
| 5529 | node = node.parentNode; |
| 5530 | } |
| 5531 | } |
| 5532 | |
| 5533 | /** |
| 5534 | * Get object describing the nodes which contain characters at offset. |
no outgoing calls
no test coverage detected