public createAttribute(name as String) as Attr throws DOMException
Creates an attribute node.
name
New attribute node.
attr = document.createAttribute("id")