setAttribute

open fun setAttribute(@NonNull name: String, @Nullable value: String)

Set an attribute.

Parameters

name

The attribute's name.

value

The attribute's value or null if the attribute should be removed.

Throws