@lesjoursfr/browser-tools
    Preparing search index...

    Function setAttribute

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

      Parameters

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

      Returns HTMLElement

      the element