nsIDOMNode

IID:a6cf907c-15b3-11d2-932e-00805f8add32
Inherits From:nsISupports

This interface is implemented by the following components:


Constants

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/

PRUint16 ELEMENT_NODE = 1
PRUint16 ATTRIBUTE_NODE = 2
PRUint16 TEXT_NODE = 3
PRUint16 CDATA_SECTION_NODE = 4
PRUint16 ENTITY_REFERENCE_NODE = 5
PRUint16 ENTITY_NODE = 6
PRUint16 PROCESSING_INSTRUCTION_NODE = 7
PRUint16 COMMENT_NODE = 8
PRUint16 DOCUMENT_NODE = 9
PRUint16 DOCUMENT_TYPE_NODE = 10
PRUint16 DOCUMENT_FRAGMENT_NODE = 11
PRUint16 NOTATION_NODE = 12

Properties

readonly nsIDOMNamedNodeMap attributes

readonly nsIDOMNodeList childNodes

readonly nsIDOMNode firstChild

readonly nsIDOMNode lastChild

readonly DOMString localName

readonly DOMString namespaceURI

readonly nsIDOMNode nextSibling

readonly DOMString nodeName

readonly PRUint16 nodeType

DOMString nodeValue

readonly nsIDOMDocument ownerDocument

readonly nsIDOMNode parentNode

DOMString prefix

readonly nsIDOMNode previousSibling


Methods

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

nsIDOMNode appendChild ( nsIDOMNode newChild )

Arguments:
newChild

nsIDOMNode cloneNode ( PRBool deep )

Arguments:
deep

PRBool hasAttributes ( )


PRBool hasChildNodes ( )


nsIDOMNode insertBefore ( nsIDOMNode newChild , nsIDOMNode refChild )

Arguments:
newChild
refChild

PRBool isSupported ( DOMString feature , DOMString version )

Arguments:
feature
version

void normalize ( )


nsIDOMNode removeChild ( nsIDOMNode oldChild )

Arguments:
oldChild

nsIDOMNode replaceChild ( nsIDOMNode newChild , nsIDOMNode oldChild )

Arguments:
newChild
oldChild

References

This interface is the type of the following properties:

inIDOMView.rootNode, nsIAccessNode.DOMNode, nsIAccessibleEvent.DOMNode, nsIContextMenuInfo.targetNode, nsIDOMMutationEvent.relatedNode, nsIDOMNSUIEvent.rangeParent, nsIDOMNode.firstChild, nsIDOMNode.lastChild, nsIDOMNode.nextSibling, nsIDOMNode.parentNode, nsIDOMNode.previousSibling, nsIDOMNodeIterator.root, nsIDOMRange.commonAncestorContainer, nsIDOMRange.endContainer, nsIDOMRange.startContainer, nsIDOMStyleSheet.ownerNode, nsIDOMTreeWalker.currentNode, nsIDOMTreeWalker.root, nsIDOMXPathResult.singleNodeValue, nsIDOMXULDocument.popupNode, nsIDOMXULDocument.tooltipNode, nsIDOMXULTextBoxElement.inputField, nsIDragSession.sourceNode, nsISelection.anchorNode, nsISelection.focusNode, nsIURIRefObject.node, nsIXSLTException.sourceNode, nsIXSLTException.styleNode

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

inIDOMUtils.getParentForNode, inIDOMView.getRowIndexFromNode, inIDeepTreeWalker.init, nsIAccessibilityService.createHTMLAccessibleByMarkup, nsIAccessibilityService.createHTMLAreaAccessible, nsIAccessibilityService.createHTMLButtonAccessibleXBL, nsIAccessibilityService.createHTMLCheckboxAccessibleXBL, nsIAccessibilityService.createHTMLComboboxAccessible, nsIAccessibilityService.createHTMLListboxAccessible, nsIAccessibilityService.createHTMLRadioButtonAccessibleXBL, nsIAccessibilityService.createHTMLSelectOptionAccessible, nsIAccessibilityService.createHTMLTableCaptionAccessible, nsIAccessibilityService.createHTMLTableHeadAccessible, nsIAccessibilityService.createOuterDocAccessible, nsIAccessibilityService.createXULAlertAccessible, nsIAccessibilityService.createXULButtonAccessible, nsIAccessibilityService.createXULCheckboxAccessible, nsIAccessibilityService.createXULColorPickerAccessible, nsIAccessibilityService.createXULColorPickerTileAccessible, nsIAccessibilityService.createXULComboboxAccessible, nsIAccessibilityService.createXULDropmarkerAccessible, nsIAccessibilityService.createXULGroupboxAccessible, nsIAccessibilityService.createXULImageAccessible, nsIAccessibilityService.createXULLinkAccessible, nsIAccessibilityService.createXULListboxAccessible, nsIAccessibilityService.createXULListitemAccessible, nsIAccessibilityService.createXULMenuSeparatorAccessible, nsIAccessibilityService.createXULMenubarAccessible, nsIAccessibilityService.createXULMenuitemAccessible, nsIAccessibilityService.createXULMenupopupAccessible, nsIAccessibilityService.createXULProgressMeterAccessible, nsIAccessibilityService.createXULRadioButtonAccessible, nsIAccessibilityService.createXULRadioGroupAccessible, nsIAccessibilityService.createXULSelectListAccessible, nsIAccessibilityService.createXULSelectOptionAccessible, nsIAccessibilityService.createXULStatusBarAccessible, nsIAccessibilityService.createXULTabAccessible, nsIAccessibilityService.createXULTabBoxAccessible, nsIAccessibilityService.createXULTabPanelsAccessible, nsIAccessibilityService.createXULTabsAccessible, nsIAccessibilityService.createXULTextAccessible, nsIAccessibilityService.createXULTextBoxAccessible, nsIAccessibilityService.createXULToolbarAccessible, nsIAccessibilityService.createXULToolbarSeparatorAccessible, nsIAccessibilityService.createXULTooltipAccessible, nsIAccessibilityService.createXULTreeAccessible, nsIAccessibilityService.createXULTreeColumnitemAccessible, nsIAccessibilityService.createXULTreeColumnsAccessible, nsIAccessibilityService.getAccessible, nsIAccessibleCaret.attachNewSelectionListener, nsIAccessibleDocument.getAccessibleInParentChain, nsIAccessibleRetrieval.getAccessibleFor, nsIAccessibleRetrieval.getAccessibleInShell, nsIAccessibleRetrieval.getAccessibleInWeakShell, nsIAccessibleRetrieval.getAccessibleInWindow, nsIAccessibleRetrieval.getCachedAccessNode, nsIAccessibleRetrieval.getCachedAccessible, nsIContentFilter.notifyOfInsertion, nsIContextMenuListener.onShowContextMenu, nsIDOM3Document.adoptNode, nsIDOM3Document.renameNode, nsIDOM3Node.compareDocumentPosition, nsIDOM3Node.isEqualNode, nsIDOM3Node.isSameNode, nsIDOMCustomEvent.setCurrentTarget, nsIDOMDocument.importNode, nsIDOMDocumentTraversal.createNodeIterator, nsIDOMDocumentTraversal.createTreeWalker, nsIDOMDocumentXBL.getBindingParent, nsIDOMLSParser.parseWithContext, nsIDOMLSParserFilter.acceptNode, nsIDOMLSSerializer.write, nsIDOMLSSerializer.writeToString, nsIDOMLSSerializer.writeToURI, nsIDOMMutationEvent.initMutationEvent, nsIDOMNSRange.compareNode, nsIDOMNSRange.comparePoint, nsIDOMNSRange.intersectsNode, nsIDOMNSRange.isPointInRange, nsIDOMNSXPathExpression.evaluateWithContext, nsIDOMNamedNodeMap.setNamedItem, nsIDOMNamedNodeMap.setNamedItemNS, nsIDOMNode.appendChild, nsIDOMNode.insertBefore, nsIDOMNode.removeChild, nsIDOMNode.replaceChild, nsIDOMNodeFilter.acceptNode, nsIDOMRange.insertNode, nsIDOMRange.selectNode, nsIDOMRange.selectNodeContents, nsIDOMRange.setEnd, nsIDOMRange.setEndAfter, nsIDOMRange.setEndBefore, nsIDOMRange.setStart, nsIDOMRange.setStartAfter, nsIDOMRange.setStartBefore, nsIDOMRange.surroundContents, nsIDOMSerializer.serializeToStream, nsIDOMSerializer.serializeToString, nsIDOMUserDataHandler.handle, nsIDOMXPathEvaluator.createNSResolver, nsIDOMXPathEvaluator.evaluate, nsIDOMXPathExpression.evaluate, nsIDragService.invokeDragSession, nsIEditActionListener.DidCreateNode, nsIEditActionListener.DidDeleteNode, nsIEditActionListener.DidInsertNode, nsIEditActionListener.DidJoinNodes, nsIEditActionListener.DidSplitNode, nsIEditActionListener.WillCreateNode, nsIEditActionListener.WillDeleteNode, nsIEditActionListener.WillInsertNode, nsIEditActionListener.WillJoinNodes, nsIEditActionListener.WillSplitNode, nsIEditor.cloneAttribute, nsIEditor.cloneAttributes, nsIEditor.createNode, nsIEditor.deleteNode, nsIEditor.insertNode, nsIEditor.joinNodes, nsIEditor.markNodeDirty, nsIEditor.splitNode, nsIHTMLEditor.createAnonymousElement, nsIHTMLEditor.getElementOrParentByTagName, nsIHTMLEditor.insertHTMLWithContext, nsIHTMLEditor.nodeIsBlock, nsIInlineSpellChecker.getMispelledWord, nsIInlineSpellChecker.replaceWord, nsIInlineSpellChecker.spellCheckAfterEditorChange, nsIMarkupDocumentViewer.scrollToNode, nsISelection.collapse, nsISelection.containsNode, nsISelection.extend, nsISelection.selectAllChildren, nsISelectionController.checkVisibility, nsITableEditor.getNextRow, nsITextServicesFilter.skip, nsITooltipTextProvider.getNodeText, nsIWalletService.WALLET_PrefillOneElement, nsIXSLTProcessor.importStylesheet, nsIXSLTProcessor.transformToDocument, nsIXSLTProcessor.transformToFragment, nsIXSLTProcessorObsolete.transformDocument, nsIXTFElement.childAppended, nsIXTFElement.childInserted, nsIXTFElement.willAppendChild, nsIXTFElement.willInsertChild, nsIXULSortService.sort

This interface is returned from the following methods:

inIDOMUtils.getParentForNode, inIDOMView.getNodeFromRowIndex, nsIDOM3Document.adoptNode, nsIDOM3Document.renameNode, nsIDOMDocument.importNode, nsIDOMHTMLCollection.item, nsIDOMHTMLCollection.namedItem, nsIDOMHTMLOptionsCollection.item, nsIDOMHTMLOptionsCollection.namedItem, nsIDOMLSParser.parseWithContext, nsIDOMNSHTMLSelectElement.item, nsIDOMNSHTMLSelectElement.namedItem, nsIDOMNamedNodeMap.getNamedItem, nsIDOMNamedNodeMap.getNamedItemNS, nsIDOMNamedNodeMap.item, nsIDOMNamedNodeMap.removeNamedItem, nsIDOMNamedNodeMap.removeNamedItemNS, nsIDOMNamedNodeMap.setNamedItem, nsIDOMNamedNodeMap.setNamedItemNS, nsIDOMNode.appendChild, nsIDOMNode.cloneNode, nsIDOMNode.insertBefore, nsIDOMNode.removeChild, nsIDOMNode.replaceChild, nsIDOMNodeIterator.nextNode, nsIDOMNodeIterator.previousNode, nsIDOMNodeList.item, nsIDOMTreeWalker.firstChild, nsIDOMTreeWalker.lastChild, nsIDOMTreeWalker.nextNode, nsIDOMTreeWalker.nextSibling, nsIDOMTreeWalker.parentNode, nsIDOMTreeWalker.previousNode, nsIDOMTreeWalker.previousSibling, nsIDOMXPathResult.iterateNext, nsIDOMXPathResult.snapshotItem, nsIEditor.createNode, nsIEditorMailSupport.insertAsCitedQuotation, nsIEditorMailSupport.insertAsQuotation, nsITableEditor.getFirstRow, nsITableEditor.getNextRow

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com