|
In DOM Level 2, the method normalize is inherited from the Node interface where it was moved.
|
tagName
|
|
Access
|
read-only
|
Returns
|
String
|
getAttributename
|
|
Parameters
|
Stringname
The name of the attribute to retrieve.
|
Returns
|
String. The Attr value as a string, or the empty string if that attribute does not have a specified or default value.
|
getAttributeNSnamespaceURIlocalName
|
|
Parameters
|
StringnamespaceURI
The namespace URI of the attribute to retrieve.
StringlocalName
The local name of the attribute to retrieve.
|
Returns
|
String. The Attr value as a string, or the empty string if that attribute does not have a specified or default value.
|
getAttributeNodename
|
|
Parameters
|
Stringname
The name (nodeName) of the attribute to retrieve.
|
Returns
|
Attr. The Attr node with the specified name (nodeName) or null if there is no such attribute.
|
getAttributeNodeNSnamespaceURIlocalName
|
|
Parameters
|
StringnamespaceURI
The namespace URI of the attribute to retrieve.
StringlocalName
The local name of the attribute to retrieve.
|
Returns
|
Attr. The Attr node with the specified attribute local name and namespace URI or null if there is no such attribute.
|
getElementsByTagNamename
|
|
Parameters
|
Stringname
The name of the tag to match on. The special value "*" matches all tags.
|
Returns
|
NodeList. A list of matching Element nodes.
|
getElementsByTagNameNSnamespaceURIlocalName
|
|
Parameters
|
StringnamespaceURI
The namespace URI of the elements to match on. The special value "*" matches all namespaces.
StringlocalName
The local name of the elements to match on. The special value "*" matches all local names.
|
Returns
|
NodeList. A new NodeList object containing all the matched Elements.
|
hasAttributename
|
|
Parameters
|
Stringname
The name of the attribute to look for.
|
Returns
|
trueboolean. if an attribute with the given name is specified on this element or has a default value, false otherwise.
|
hasAttributeNSnamespaceURIlocalName
|
|
Parameters
|
StringnamespaceURI
The namespace URI of the attribute to look for.
StringlocalName
The local name of the attribute to look for.
|
Returns
|
trueboolean. if an attribute with the given local name and namespace URI is specified or has a default value on this element, false otherwise.
|
removeAttributename
|
|
Parameters
|
Stringname
The name of the attribute to remove.
|
Returns
|
void
|
Throws
|
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
removeAttributeNSnamespaceURIlocalName
|
|
Parameters
|
StringnamespaceURI
The namespace URI of the attribute to remove.
StringlocalName
The local name of the attribute to remove.
|
Returns
|
void
|
Throws
|
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
removeAttributeNodeoldAttr
|
|
Parameters
|
AttroldAttr
The Attr node to remove from the attribute list.
|
Returns
|
Attr. The Attr node that was removed.
|
Throws
|
DOMException
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NOT_FOUND_ERR: Raised if oldAttr is not an attribute of the element.
|
setAttributenamevalue
|
|
Parameters
|
Stringname
The name of the attribute to create or alter.
Stringvalue
Value to set in string form.
|
Returns
|
void
|
Throws
|
DOMException
INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|
setAttributeNSnamespaceURIqualifiedNamevalue
|
|
Parameters
|
StringnamespaceURI
The namespace URI of the attribute to create or alter.
StringqualifiedName
The qualified name of the attribute to create or alter.
Stringvalue
The value to set in string form.
|
Returns
|
void
|
Throws
|
DOMException
INVALID_CHARACTER_ERR: Raised if the specified qualified name contains an illegal character.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
NAMESPACE_ERR: Raised if the qualifiedName is malformed, if the qualifiedName has a prefix and the namespaceURI is null, if the qualifiedName has a prefix that is "xml" and the namespaceURI is different from the xml namespace, or if the qualifiedName is "xmlns" and the namespaceURI is different from the xml namespace.
|
setAttributeNodenewAttr
|
|
Parameters
|
AttrnewAttr
The Attr node to add to the attribute list.
|
Returns
|
Attr. If the newAttr attribute replaces an existing attribute, the replaced Attr node is returned, otherwise null is returned.
|
Throws
|
DOMException
WRONG_DOCUMENT_ERR: Raised if newAttr was created from a different document than the one that created the element.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements.
|
setAttributeNodeNSnewAttr
|
|
Parameters
|
AttrnewAttr
The Attr node to add to the attribute list.
|
Returns
|
Attr. If the newAttr attribute replaces an existing attribute with the same local name and namespace URI, the replaced Attr node is returned, otherwise null is returned.
|
Throws
|
DOMException
WRONG_DOCUMENT_ERR: Raised if newAttr was created from a different document than the one that created the element.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
INUSE_ATTRIBUTE_ERR: Raised if newAttr is already an attribute of another Element object. The DOM user must explicitly clone Attr nodes to re-use them in other elements.
|