Function getAttribute

  • Parameters

    • attributeName: string

      The name of the attribute we want to read.

    • from: undefined | Element

      Start the search from this Element.

    • Rest...path: readonly (string | number)[]

      We use followPath() to find an Element then we look for the attribute there. Leave this empty to look for the attribute directly in from.

    Returns string | undefined

    The value of the attribute. Or undefined if there are any problems.