pseudo-dom
    Preparing search index...

    Function getParentNodesFromAttribute

    • A selector function for retrieving existing parent PseudoNode from the given child item. This function will check all the parents starting from node, and scan the attributes property for matches. The return array contains all matching parent ancestors, starting with the root of the tree.

      Parameters

      • attr: string

        The property to compare on each ancestor (a missing property counts as false)

      • value: string | number | boolean

        The value the property must have

      • node: any

        The node to find the matching ancestors of

      Returns PseudoNode[]