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