AvailabilityDOM Level 1 Core SynopsisAttr createAttribute(String name) throws DOMException; Arguments
ReturnsA newly created Attr node with its nodeName property set to name. ThrowsThis method throws a DOMException with a code of INVALID_CHARACTER_ERR if name contains an illegal character. See AlsoAttr, Element.setAttribute( ), Element.setAttributeNode( ) |