Function setAttribute

  • Set the given attribute. If the value is null the attribute will be removed.

    Parameters

    • node: HTMLElement
    • attribute: string
    • value: null | string

    Returns HTMLElement

    the element

Generated using TypeDoc