* Given any node return the first leaf node without children. * * @param {DOMElement|DOMTextNode} node * @return {DOMElement|DOMTextNode}
(node)
| 6413 | * @return {DOMElement|DOMTextNode} |
| 6414 | */ |
| 6415 | function getLeafNode(node) { |
| 6416 | while (node && node.firstChild) { |
| 6417 | node = node.firstChild; |
| 6418 | } |
| 6419 | return node; |
| 6420 | } |
| 6421 | |
| 6422 | /** |
| 6423 | * Get the next sibling within a container. This will walk up the |
no outgoing calls
no test coverage detected