Set Custom Attribute
element.setCustomAttribute(name, value)
Set a custom HTML attribute for an element.
Syntax
Parameters
name
: String - The name of the custom attribute.value
: String - The value of the custom attribute
The value of the named custom attribute.
Returns
Promise<null
>
A promise that resolves to null