setAttributeNS method

void setAttributeNS(
  1. String? namespace,
  2. String qualifiedName,
  3. String value
)
inherited

setAttributeNS adds a new attribute or changes the value of an attribute with the given namespace and name.

If you are working with HTML documents and you don't need to specify the requested attribute as being part of a specific namespace, use the Element.setAttribute method instead.

Implementation

external void setAttributeNS(
  String? namespace,
  String qualifiedName,
  String value,
);