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
  • idAttr Attribute node.
  • isId True when the attribute should be treated as an identifier.
Throws
  • DOMException if the attribute is not attached.
Example
element.setIdAttributeNode(attr, true)