createAttribute(name )
|
|
Parameters
|
Stringname
The name of the attribute.
|
Returns
|
Attr. A new Attr object with the nodeName attribute set to name, and localName, prefix, and namespaceURI set to null. The value of the attribute is the empty string.
|
Throws
|
DOMException
INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.
|