* Given any node return the first leaf node without children. * * @param {DOMElement|DOMTextNode} node * @return {DOMElement|DOMTextNode}
(node)
| 5636 | * @return {DOMElement|DOMTextNode} |
| 5637 | */ |
| 5638 | function getLeafNode(node) { |
| 5639 | while (node && node.firstChild) { |
| 5640 | node = node.firstChild; |
| 5641 | } |
| 5642 | return node; |
| 5643 | } |
| 5644 | |
| 5645 | /** |
| 5646 | * Get the next sibling within a container. This will walk up the |
no outgoing calls
no test coverage detected