1.0.1 • Published 8 years ago

path-to-domnode v1.0.1

Weekly downloads
17
License
MIT
Repository
github
Last release
8 years ago

path to DOMNode

pathTo(node:DOMNode, rootNode:DOMNode)

  • node is a descendant of rootNode.
  • rootNode is 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