Function getAttributeValue

  • Gets an attribute from an element.

    Parameters

    • elem: Element

      Element to check.

    • name: string

      Attribute name to retrieve.

    Returns string | undefined

    The element's attribute value, or undefined.