json-dom
    Preparing search index...

    Function getItemByPath

    • Resolve a path (as built by getItemPath) back to the item it points at, starting from the root. Throws when the path no longer matches the tree's current shape - exactly like a stale reference to a real DOM element would, a path is only valid for as long as the tree it was built from keeps the same shape.

      Parameters

      • root: DomItem

        The item the path is relative to (usually documentItem).

      • path: ItemPath

        The path to resolve, as returned by getItemPath.

      Returns DomItem