* Given any node return the first leaf node without children. * * @param {DOMElement|DOMTextNode} node * @return {DOMElement|DOMTextNode}
(node)
| 6783 | */ |
| 6784 | |
| 6785 | function getLeafNode(node) { |
| 6786 | while (node && node.firstChild) { |
| 6787 | node = node.firstChild; |
| 6788 | } |
| 6789 | |
| 6790 | return node; |
| 6791 | } |
| 6792 | /** |
| 6793 | * Get the next sibling within a container. This will walk up the |
| 6794 | * DOM if a node's siblings have been exhausted. |
no outgoing calls
no test coverage detected