org.w3c.dom.Attr.isId
property
public readonly property isId as Boolean
Description

True when this attribute is known to be an element identifier.

Example
print(attr.isId)