src/basis/tracker.js
function getPathByNode(node){
  var cursor = node;
  var path = [];
  var role;

  while (cursor && cursor !== document)
  {
    if (role = cursor.getAttribute('role-marker'))
      path.unshift(parseRole(role));
    cursor = cursor.parentNode;
  }

  return path;
}
function getPathByNode(node){
  var cursor = node;
  var path = [];
  var role;

  while (cursor && cursor !== document)
  {
    if (role = cursor.getAttribute('role-marker'))
      path.unshift(parseRole(role));
    cursor = cursor.parentNode;
  }

  return path;
}
function getPathByNode ( node ) { var cursor = node ; var path = [ ] ; var role ; while ( cursor && cursor !== document ) { if ( role = cursor . getAttribute ( 'role-marker' ) ) path . unshift ( parseRole ( role ) ) ; cursor = cursor . parentNode ; } return path ; }
Works similar to `parsePath` but for DOM nodes, not for strings
Is used in devpanel.
@param {HTMLElement} node
@return {Array.<RoleObject>}
Works similar to parsePath but for DOM nodes not for strings Is used in devpanel .