* 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)
| 6324 | * @return {?DOMElement|DOMTextNode} |
| 6325 | */ |
| 6326 | function getSiblingNode(node) { |
| 6327 | while (node) { |
| 6328 | if (node.nextSibling) { |
| 6329 | return node.nextSibling; |
| 6330 | } |
| 6331 | node = node.parentNode; |
| 6332 | } |
| 6333 | } |
| 6334 | |
| 6335 | /** |
| 6336 | * Get object describing the nodes which contain characters at offset. |
no outgoing calls
no test coverage detected