DOM

The following is a list of the DOM interfaces supported by Mozilla. Most of the interfaces correspond directly with those defined by the W3C DOM recommendations. For example, the nsIDOMDocument interface corresponds to the DOM Document interface. Frozen interfaces exist for all those that are DOM Level 2 and below. Mozilla also supports some DOM Level 3 features, which are denoted by any interface name that begins with nsIDOM3. Although Mozilla provides interfaces for all DOM2 and many DOM3 features, this is not necessarily an indication that they are currently implemented.

Some interfaces are not part of W3C recommendations, for instance, support for the JavaScript window object and the various XUL elements.

Almost all of the DOM interfaces are directly usable in script without using XPCOM. Usually, the JavaScript object name is the interface name without the nsIDOM prefix. For example, nsIDOMXULElement is directly accessible in script with XULElement.

Jump to:


W3C DOM

The following interfaces are defined by DOM Level 2.

nsIDOMAbstractView
nsIDOMAttr
nsIDOMCDATASection
nsIDOMCSS2Properties
nsIDOMCSSCharsetRule
nsIDOMCSSFontFaceRule
nsIDOMCSSImportRule
nsIDOMCSSMediaRule
nsIDOMCSSPageRule
nsIDOMCSSPrimitiveValue
nsIDOMCSSRule
nsIDOMCSSRuleList
nsIDOMCSSStyleDeclaration
nsIDOMCSSStyleRule
nsIDOMCSSStyleSheet
nsIDOMCSSUnknownRule
nsIDOMCSSValue
nsIDOMCSSValueList
nsIDOMCharacterData
nsIDOMComment
nsIDOMCounter
nsIDOMCustomEvent
nsIDOMDOMException
nsIDOMDOMImplementation
nsIDOMDocument
nsIDOMDocumentCSS
nsIDOMDocumentEvent
nsIDOMDocumentFragment
nsIDOMDocumentRange
nsIDOMDocumentStyle
nsIDOMDocumentTraversal
nsIDOMDocumentType
nsIDOMDocumentView
nsIDOMElement
nsIDOMElementCSSInlineStyle
nsIDOMEntity
nsIDOMEntityReference
nsIDOMEvent
nsIDOMEventGroup
nsIDOMEventListener
nsIDOMEventTarget
nsIDOMLinkStyle
nsIDOMMediaList
nsIDOMMouseEvent
nsIDOMMutationEvent
nsIDOMNamedNodeMap
nsIDOMNode
nsIDOMNodeFilter
nsIDOMNodeIterator
nsIDOMNodeList
nsIDOMNotation
nsIDOMProcessingInstruction
nsIDOMRGBColor
nsIDOMRange
nsIDOMRangeException
nsIDOMRect
nsIDOMStyleSheet
nsIDOMStyleSheetList
nsIDOMText
nsIDOMTreeWalker
nsIDOMUIEvent
nsIDOMViewCSS

W3C DOM HTML

The following interfaces are defined by DOM Level 2 HTML.

nsIDOMHTMLAnchorElement
nsIDOMHTMLAppletElement
nsIDOMHTMLAreaElement
nsIDOMHTMLBRElement
nsIDOMHTMLBaseElement
nsIDOMHTMLBaseFontElement
nsIDOMHTMLBodyElement
nsIDOMHTMLButtonElement
nsIDOMHTMLCollection
nsIDOMHTMLDListElement
nsIDOMHTMLDirectoryElement
nsIDOMHTMLDivElement
nsIDOMHTMLDocument
nsIDOMHTMLElement
nsIDOMHTMLEmbedElement
nsIDOMHTMLFieldSetElement
nsIDOMHTMLFontElement
nsIDOMHTMLFormElement
nsIDOMHTMLFrameElement
nsIDOMHTMLFrameSetElement
nsIDOMHTMLHRElement
nsIDOMHTMLHeadElement
nsIDOMHTMLHeadingElement
nsIDOMHTMLHtmlElement
nsIDOMHTMLIFrameElement
nsIDOMHTMLImageElement
nsIDOMHTMLInputElement
nsIDOMHTMLIsIndexElement
nsIDOMHTMLLIElement
nsIDOMHTMLLabelElement
nsIDOMHTMLLegendElement
nsIDOMHTMLLinkElement
nsIDOMHTMLMapElement
nsIDOMHTMLMenuElement
nsIDOMHTMLMetaElement
nsIDOMHTMLModElement
nsIDOMHTMLOListElement
nsIDOMHTMLObjectElement
nsIDOMHTMLOptGroupElement
nsIDOMHTMLOptionElement
nsIDOMHTMLOptionsCollection
nsIDOMHTMLParagraphElement
nsIDOMHTMLParamElement
nsIDOMHTMLPreElement
nsIDOMHTMLQuoteElement
nsIDOMHTMLScriptElement
nsIDOMHTMLSelectElement
nsIDOMHTMLStyleElement
nsIDOMHTMLTableCaptionElement
nsIDOMHTMLTableCellElement
nsIDOMHTMLTableColElement
nsIDOMHTMLTableElement
nsIDOMHTMLTableRowElement
nsIDOMHTMLTableSectionElement
nsIDOMHTMLTextAreaElement
nsIDOMHTMLTitleElement
nsIDOMHTMLUListElement

W3C DOM Level 3

The following interfaces are defined by DOM Level 3. In some cases, they extend earlier versions.

nsIDOM3Document
nsIDOM3DocumentEvent
nsIDOM3EventTarget
nsIDOM3Node
nsIDOMDOMConfiguration
nsIDOMDOMStringList
nsIDOMNameList
nsIDOMUserDataHandler
nsIDOMXPathEvaluator
nsIDOMXPathException
nsIDOMXPathExpression
nsIDOMXPathNSResolver
nsIDOMXPathNamespace
nsIDOMXPathResult

Mozilla Specific DOM Interfaces

The following interfaces are extensions to the DOM or are not defined by the W3C. These are needed to support the JavaScript window, location, history and related objects, as well as additional properties and methods of elements.

nsIDOMBarProp
nsIDOMCRMFObject
nsIDOMChromeWindow
nsIDOMCrypto
nsIDOMDocumentXBL
nsIDOMHistory
nsIDOMJSNavigator
nsIDOMJSPluginArray
nsIDOMJSWindow
nsIDOMKeyEvent
nsIDOMLocation
nsIDOMMimeType
nsIDOMMimeTypeArray
nsIDOMNSCSS2Properties
nsIDOMNSDocument
nsIDOMNSEvent
nsIDOMNSHTMLAnchorElement
nsIDOMNSHTMLAreaElement
nsIDOMNSHTMLButtonElement
nsIDOMNSHTMLDocument
nsIDOMNSHTMLElement
nsIDOMNSHTMLFormControlList
nsIDOMNSHTMLFormElement
nsIDOMNSHTMLFrameElement
nsIDOMNSHTMLHRElement
nsIDOMNSHTMLImageElement
nsIDOMNSHTMLInputElement
nsIDOMNSHTMLOptionCollection
nsIDOMNSHTMLOptionElement
nsIDOMNSHTMLSelectElement
nsIDOMNSHTMLTextAreaElement
nsIDOMNSHistory
nsIDOMNSLocation
nsIDOMNSRange
nsIDOMNSUIEvent
nsIDOMNSXBLFormControl
nsIDOMNavigator
nsIDOMPkcs11
nsIDOMPlugin
nsIDOMPluginArray
nsIDOMPopupBlockedEvent
nsIDOMScreen
nsIDOMWindow
nsIDOMWindowCollection
nsIDOMWindowInternal
nsIDOMXMLDocument

XUL

The following interfaces are used for XUL elements.

nsIDOMXULButtonElement
nsIDOMXULCheckboxElement
nsIDOMXULCommandDispatcher
nsIDOMXULControlElement
nsIDOMXULDescriptionElement
nsIDOMXULDocument
nsIDOMXULElement
nsIDOMXULImageElement
nsIDOMXULLabelElement
nsIDOMXULLabeledControlElement
nsIDOMXULMenuListElement
nsIDOMXULMultiSelectControlElement
nsIDOMXULPopupElement
nsIDOMXULSelectControlElement
nsIDOMXULSelectControlItemElement
nsIDOMXULTextboxElement

Additional Interfaces and Components

Some miscellaneous interfaces and components used by Mozilla's DOM implementation.

nsIChromeEventHandler
nsIEntropyCollector

@mozilla.org/DOM/Level2/CSS/computedStyleDeclaration;1
@mozilla.org/dom/window-controller;1
@mozilla.org/dom/xpath-evaluator;1

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com