nsIDOMNode
Last changed in Gecko 1.7 DOMString getAttribute(in DOMString name); |
nsIDOMAttr getAttributeNode(in DOMString name); |
nsIDOMAttr getAttributeNodeNS(in DOMString namespaceURI, in DOMString localName); |
DOMString getAttributeNS(in DOMString namespaceURI, in DOMString localName); |
nsIDOMNodeList getElementsByTagName(in DOMString name); |
nsIDOMNodeList getElementsByTagNameNS(in DOMString namespaceURI, in DOMString localName); |
boolean hasAttribute(in DOMString name); |
boolean hasAttributeNS(in DOMString namespaceURI, in DOMString localName); |
void removeAttribute(in DOMString name) |
nsIDOMAttr removeAttributeNode(in nsIDOMAttr oldAttr) |
void removeAttributeNS(in DOMString namespaceURI, in DOMString localName) |
void setAttribute(in DOMString name, in DOMString value) |
nsIDOMAttr setAttributeNode(in nsIDOMAttr newAttr) |
nsIDOMAttr setAttributeNodeNS(in nsIDOMAttr newAttr) |
void setAttributeNS(in DOMString namespaceURI, in DOMString qualifiedName, in DOMString value) |
Attribute | Type | Description |
tagName | DOMString | The element tag name. Read only. |
Get an attribute value.
DOMString getAttribute( in DOMString name );
name
A DOMString containing the attribute value.
Get an attribute node.
nsIDOMAttr getAttributeNode( in DOMString name );
name
A nsIDOMAttr
corresponding to the attribute.
Get an attribute node in a given namespace.
nsIDOMAttr getAttributeNodeNS( in DOMString namespaceURI, in DOMString localName );
namespaceURI
localName
A nsIDOMAttr
corresponding to the attribute.
Get an attribute value in a given namespace.
DOMString getAttributeNS( in DOMString namespaceURI, in DOMString localName );
namespaceURI
localName
A DOMString containing the attribute value.
Get all descendants of a tag name.
nsIDOMNodeList getElementsByTagName( in DOMString name );
name
A nsIDOMNodeList
containg all the descendants of this tag name.
Get all descendants of a tag name in a given namespace.
nsIDOMNodeList getElementsByTagNameNS( in DOMString namespaceURI, in DOMString localName );
namespaceURI
localName
A nsIDOMNodeList
containg all the descendants of this tag name.
Check if the element have this attribute set.
boolean hasAttribute( in DOMString name );
name
A boolean, true if the given attribute is set.
Check if the element for a given namespace have this attribute set.
boolean hasAttributeNS( in DOMString namespaceURI, in DOMString localName );
namespaceURI
localName
A boolean, true if the given attribute is set.
Remove an attribute.
void removeAttribute( in DOMString name );
name
Remove an attribute, giving the attribute node.
nsIDOMAttr removeAttributeNode( in nsIDOMAttr oldAttr );
oldAttr
A nsIDOMAttr corresponding to the removed attribute node.
Remove an attribute.
void removeAttributeNS( in DOMString namespaceURI, in DOMString localName );
namespaceURI
localName
Set an attribute.
void setAttribute( in DOMString name, in DOMString value );
name
value
Set an attribute, giving the attribute node.
nsIDOMAttr setAttributeNode( in nsIDOMAttr newAttr );
newAttr
A nsIDOMAttr corresponding to the attribute node added.
Set an attribute, giving the attribute node.
nsIDOMAttr setAttributeNodeNS( in nsIDOMAttr newAttr );
newAttr
A nsIDOMAttr corresponding to the attribute node added.
Set an attribute.
void setAttributeNS( in DOMString namespaceURI, in DOMString qualifiedName, in DOMString value );
namespaceURI
qualifiedName
value