Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "wed/dloc"

Index

Type aliases

ValidRoots

ValidRoots: Document | Element

Functions

findRoot

  • findRoot(node: Node | Attr | undefined | null): DLocRoot | undefined
  • Finds the root under which a node resides. Note that in cases where an undefined result is useless, you should use getRoot instead.

    Parameters

    • node: Node | Attr | undefined | null

      The node whose root we want.

    Returns DLocRoot | undefined

    The root object, or undefined if the root can't be found.

getRoot

  • getRoot(node: Node | Attr | undefined | null): DLocRoot
  • Gets the root under which a node resides.

    throws

    {Error} If the root cannot be found.

    Parameters

    • node: Node | Attr | undefined | null

      The node whose root we want.

    Returns DLocRoot

    The root node.

getTestLength

  • getTestLength(node: Node | Attr): number

Generated using TypeDoc