Element interface, so attributes can be specified directly on the returned object. Attr nodes representing them are automatically created and attached to the element. createElementNS method.
@param tagName The name of the element type to instantiate. For XML, this is case-sensitive, otherwise it depends on the case-sensitivity of the markup language in use. In that case, the name is mapped to the canonical form of that markup by the DOM implementation.
@return A new Element object with the nodeName attribute set to tagName, and localName, prefix, and namespaceURI set to null.
@exception DOMException INVALID_CHARACTER_ERR: Raised if the specified name is not an XML name according to the XML version in use specified in the Document.xmlVersion attribute.
| |