docs: 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;
  }