Attr
This is a scriptable interface corresponding to the following XPCOM interfaces:
Constants
| short | DOCUMENT_POSITION_DISCONNECTED | = 1 |
| short | DOCUMENT_POSITION_PRECEDING | = 2 |
| short | DOCUMENT_POSITION_FOLLOWING | = 4 |
| short | DOCUMENT_POSITION_CONTAINS | = 8 |
| short | DOCUMENT_POSITION_CONTAINED_BY | = 16 |
| short | DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC | = 32 |
| The nsIDOMNode interface is the primary datatype for the entire
Document Object Model.
It represents a single node in the document tree.
For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/ | ||
| short | ELEMENT_NODE | = 1 |
| short | ATTRIBUTE_NODE | = 2 |
| short | TEXT_NODE | = 3 |
| short | CDATA_SECTION_NODE | = 4 |
| short | ENTITY_REFERENCE_NODE | = 5 |
| short | ENTITY_NODE | = 6 |
| short | PROCESSING_INSTRUCTION_NODE | = 7 |
| short | COMMENT_NODE | = 8 |
| short | DOCUMENT_NODE | = 9 |
| short | DOCUMENT_TYPE_NODE | = 10 |
| short | DOCUMENT_FRAGMENT_NODE | = 11 |
| short | NOTATION_NODE | = 12 |
Properties
readonly NamedNodeMap attributes
readonly String baseURI
readonly NodeList childNodes
readonly Node firstChild
readonly Node lastChild
readonly String localName
readonly String name
The nsIDOMAttr interface represents an attribute in an "Element" object. Typically the allowable values for the attribute are defined in a document type definition.
For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/
readonly String namespaceURI
readonly Node nextSibling
readonly String nodeName
readonly short nodeType
String nodeValue
readonly Document ownerDocument
readonly Element ownerElement
readonly Node parentNode
String prefix
readonly Node previousSibling
readonly boolean specified
String textContent
String value
Methods
Node appendChild ( Node newChild )
Node cloneNode ( boolean deep )
short compareDocumentPosition ( Node other )
nsISupports getFeature ( String feature , String version )
nsIVariant getUserData ( String key )
boolean hasAttributes ( )
boolean hasChildNodes ( )
Node insertBefore ( Node newChild , Node refChild )
boolean isDefaultNamespace ( String namespaceURI )
boolean isEqualNode ( Node arg )
boolean isSameNode ( Node other )
boolean isSupported ( String feature , String version )
String lookupNamespaceURI ( String prefix )
String lookupPrefix ( String namespaceURI )
void normalize ( )
Node removeChild ( Node oldChild )
Node replaceChild ( Node newChild , Node oldChild )
nsIVariant setUserData ( String key , nsIVariant data , nsIDOMUserDataHandler handler )
Node cloneNode ( boolean deep )
- Arguments:
- deep
short compareDocumentPosition ( Node other )
- Arguments:
- other
nsIVariant getUserData ( String key )
- Arguments:
- key
boolean isEqualNode ( Node arg )
- Arguments:
- arg
boolean isSameNode ( Node other )
- Arguments:
- other
nsIVariant setUserData ( String key , nsIVariant data , nsIDOMUserDataHandler handler )
- Arguments:
- key
- data
- handler
Reference documentation is generated from Mozilla's source.
