Public Member Functions | Public Attributes

nsIDOMNode Interface Reference

The nsIDOMNode interface is the primary datatype for the entire Document Object Model. More...

import "nsIDOMNode.idl";

Inheritance diagram for nsIDOMNode:
Collaboration diagram for nsIDOMNode:

List of all members.

Public Member Functions

nsIDOMNode insertBefore (in nsIDOMNode newChild, in nsIDOMNode refChild) raises (DOMException)
nsIDOMNode replaceChild (in nsIDOMNode newChild, in nsIDOMNode oldChild) raises (DOMException)
nsIDOMNode removeChild (in nsIDOMNode oldChild) raises (DOMException)
nsIDOMNode appendChild (in nsIDOMNode newChild) raises (DOMException)
boolean hasChildNodes ()
nsIDOMNode cloneNode (in boolean deep)
void normalize ()
boolean isSupported (in DOMString feature, in DOMString version)
boolean hasAttributes ()

Public Attributes

const unsigned short ELEMENT_NODE = 1
const unsigned short ATTRIBUTE_NODE = 2
const unsigned short TEXT_NODE = 3
const unsigned short CDATA_SECTION_NODE = 4
const unsigned short ENTITY_REFERENCE_NODE = 5
const unsigned short ENTITY_NODE = 6
const unsigned short PROCESSING_INSTRUCTION_NODE = 7
const unsigned short COMMENT_NODE = 8
const unsigned short DOCUMENT_NODE = 9
const unsigned short DOCUMENT_TYPE_NODE = 10
const unsigned short DOCUMENT_FRAGMENT_NODE = 11
const unsigned short NOTATION_NODE = 12
readonly attribute DOMString nodeName
attribute DOMString nodeValue
readonly attribute unsigned short nodeType
readonly attribute nsIDOMNode parentNode
readonly attribute nsIDOMNodeList childNodes
readonly attribute nsIDOMNode firstChild
readonly attribute nsIDOMNode lastChild
readonly attribute nsIDOMNode previousSibling
readonly attribute nsIDOMNode nextSibling
readonly attribute
readonly attribute nsIDOMDocument ownerDocument
readonly attribute DOMString namespaceURI
attribute DOMString prefix
readonly attribute DOMString localName

Detailed Description

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


Member Function Documentation

nsIDOMNode nsIDOMNode::appendChild ( in nsIDOMNode  newChild  )  raises (DOMException)
nsIDOMNode nsIDOMNode::cloneNode ( in boolean  deep  ) 
boolean nsIDOMNode::hasAttributes (  ) 
boolean nsIDOMNode::hasChildNodes (  ) 
nsIDOMNode nsIDOMNode::insertBefore ( in nsIDOMNode  newChild,
in nsIDOMNode  refChild 
) raises (DOMException)
boolean nsIDOMNode::isSupported ( in DOMString  feature,
in DOMString  version 
void nsIDOMNode::normalize (  ) 
nsIDOMNode nsIDOMNode::removeChild ( in nsIDOMNode  oldChild  )  raises (DOMException)
nsIDOMNode nsIDOMNode::replaceChild ( in nsIDOMNode  newChild,
in nsIDOMNode  oldChild 
) raises (DOMException)

Member Data Documentation

const unsigned short nsIDOMNode::ATTRIBUTE_NODE = 2
const unsigned short nsIDOMNode::CDATA_SECTION_NODE = 4
const unsigned short nsIDOMNode::COMMENT_NODE = 8
const unsigned short nsIDOMNode::DOCUMENT_FRAGMENT_NODE = 11
const unsigned short nsIDOMNode::DOCUMENT_NODE = 9
const unsigned short nsIDOMNode::DOCUMENT_TYPE_NODE = 10
const unsigned short nsIDOMNode::ELEMENT_NODE = 1
const unsigned short nsIDOMNode::ENTITY_NODE = 6
const unsigned short nsIDOMNode::ENTITY_REFERENCE_NODE = 5
readonly attribute nsIDOMNode nsIDOMNode::firstChild
readonly attribute nsIDOMNode nsIDOMNode::lastChild
readonly attribute DOMString nsIDOMNode::localName
readonly attribute DOMString nsIDOMNode::namespaceURI
readonly attribute nsIDOMNode nsIDOMNode::nextSibling
readonly attribute DOMString nsIDOMNode::nodeName
readonly attribute unsigned short nsIDOMNode::nodeType
attribute DOMString nsIDOMNode::nodeValue
const unsigned short nsIDOMNode::NOTATION_NODE = 12
readonly attribute nsIDOMNode nsIDOMNode::parentNode
attribute DOMString nsIDOMNode::prefix
const unsigned short nsIDOMNode::PROCESSING_INSTRUCTION_NODE = 7
const unsigned short nsIDOMNode::TEXT_NODE = 3

The documentation for this interface was generated from the following file: