org.w3c.dom.Element.setIdAttributeNode
method
public setIdAttributeNode(idAttr as Attr, isId as Boolean) as Void throws DOMException
Description

Marks an attribute node as an identifier attribute.

Parameters
ParameterDescription
idAttrAttribute node.
isIdTrue when the attribute should be treated as an identifier.
Throws
  • DOMException if the attribute is not attached.
Example
element.setIdAttributeNode(attr, true)