path-to-domnode
v1.0.1
Published
A root node and a descendant and receive the path to the specified node.
Downloads
481
Readme
path to DOMNode
pathTo(node:DOMNode, rootNode:DOMNode)
nodeis a descendant of rootNode.rootNodeis the reference in respect to which the paths are resolved- returns an array, where
[]is the root node,[0]is the first child node and[0,1]is the second child of the first child of the root node
See also
Legal
(c) 2016 by Marcel Klehr
MIT-License
