nsIDOMDocument

IID:a6cf9075-15b3-11d2-932e-00805f8add32
Inherits From:nsIDOMNode

This interface is implemented by the following components:


Properties

readonly nsIDOMDocumentType doctype

The nsIDOMDocument interface represents the entire HTML or XML document. Conceptually, it is the root of the document tree, and provides the primary access to the document's data. Since elements, text nodes, comments, processing instructions, etc. cannot exist outside the context of a Document, the nsIDOMDocument interface also contains the factory methods needed to create these objects.

For more information on this interface please see http://www.w3.org/TR/DOM-Level-2-Core/

readonly nsIDOMElement documentElement

readonly nsIDOMDOMImplementation implementation


Methods

nsIDOMAttr createAttribute ( DOMString name ) nsIDOMAttr createAttributeNS ( DOMString namespaceURI , DOMString qualifiedName ) nsIDOMCDATASection createCDATASection ( DOMString data ) nsIDOMComment createComment ( DOMString data ) nsIDOMDocumentFragment createDocumentFragment ( ) nsIDOMElement createElement ( DOMString tagName ) nsIDOMElement createElementNS ( DOMString namespaceURI , DOMString qualifiedName ) nsIDOMEntityReference createEntityReference ( DOMString name ) nsIDOMProcessingInstruction createProcessingInstruction ( DOMString target , DOMString data ) nsIDOMText createTextNode ( DOMString data ) nsIDOMElement getElementById ( DOMString elementId ) nsIDOMNodeList getElementsByTagName ( DOMString tagname ) nsIDOMNodeList getElementsByTagNameNS ( DOMString namespaceURI , DOMString localName ) nsIDOMNode importNode ( nsIDOMNode importedNode , PRBool deep )

nsIDOMAttr createAttribute ( DOMString name )

Arguments:
name

nsIDOMAttr createAttributeNS ( DOMString namespaceURI , DOMString qualifiedName )

Arguments:
namespaceURI
qualifiedName

nsIDOMCDATASection createCDATASection ( DOMString data )

Arguments:
data

nsIDOMComment createComment ( DOMString data )

Arguments:
data

nsIDOMDocumentFragment createDocumentFragment ( )


nsIDOMElement createElement ( DOMString tagName )

Arguments:
tagName

nsIDOMElement createElementNS ( DOMString namespaceURI , DOMString qualifiedName )

Arguments:
namespaceURI
qualifiedName

nsIDOMEntityReference createEntityReference ( DOMString name )

Arguments:
name

nsIDOMProcessingInstruction createProcessingInstruction ( DOMString target , DOMString data )

Arguments:
target
data

nsIDOMText createTextNode ( DOMString data )

Arguments:
data

nsIDOMElement getElementById ( DOMString elementId )

Arguments:
elementId

nsIDOMNodeList getElementsByTagName ( DOMString tagname )

Arguments:
tagname

nsIDOMNodeList getElementsByTagNameNS ( DOMString namespaceURI , DOMString localName )

Arguments:
namespaceURI
localName

nsIDOMNode importNode ( nsIDOMNode importedNode , PRBool deep )

Arguments:
importedNode
deep

References

This interface is the type of the following properties:

inICSSValueSearch.document, nsIAccessibleDocument.document, nsIContentViewer.DOMDocument, nsIDOMHTMLFrameElement.contentDocument, nsIDOMHTMLIFrameElement.contentDocument, nsIDOMHTMLObjectElement.contentDocument, nsIDOMLSLoadEvent.newDocument, nsIDOMNode.ownerDocument, nsIDOMWindow.document, nsIDownloadProgressListener.document, nsIDragSession.sourceDocument, nsIEditor.document, nsISOAPMessage.message, nsIWebNavigation.document, nsIXMLHttpRequest.responseXML

This interface is passed as an argument to the following methods:

nsIContentFilter.notifyOfInsertion, nsIEditor.init, nsIFIXptrEvaluator.evaluate, nsIHTMLEditor.insertHTMLWithContext, nsISelectionListener.notifySelectionChanged, nsIUpdate.serialize, nsIUpdatePatch.serialize, nsIWebBrowserPersist.saveDocument, nsIXMLContentBuilder.setDocument, nsIXPointerEvaluator.evaluate, nsIXPointerSchemeProcessor.evaluate, nsIXSLTProcessor.transformToFragment, nsIXSLTProcessorObsolete.transformDocument, nsIXTFElement.documentChanged, nsIXTFElement.willChangeDocument

This interface is returned from the following methods:

nsIDOMDOMImplementation.createDocument, nsIDOMDocumentXBL.loadBindingDocument, nsIDOMLSParser.parse, nsIDOMLSParser.parseURI, nsIDOMNSHTMLDocument.open, nsIDOMParser.parseFromBuffer, nsIDOMParser.parseFromStream, nsIDOMParser.parseFromString, nsISyncLoadDOMService.loadDocument, nsISyncLoadDOMService.loadDocumentAsXML, nsISyncLoadDOMService.loadLocalDocument, nsISyncLoadDOMService.loadLocalXBLDocument, nsIXSLTProcessor.transformToDocument

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com