The DOM element to operate on.
The name of the attribute to get, set, or remove.
Optionalvalue: string
The value to set for the attribute. If null, the attribute will be removed.
The element's attribute value when getting, or the element itself when setting/removing.
Gets, sets, or removes an attribute on a DOM element. This is a type-safe wrapper around the native DOM attribute methods.