compact2 (Common DOM API )
Keywords: compact2 profile
Date: 2026-04-24

# Profile compact2

- - ### org.w3c.dom

    Interface Summary
    Interface | Description
    --- | ---
    Attr | The `Attr` interface represents an attribute in an `Element` object.
    CDATASection | CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup.
    CharacterData | The `CharacterData` interface extends Node with a set of attributes and methods for accessing character data in the DOM.
    Comment | This interface inherits from `CharacterData` and represents the content of a comment, i.e., all the characters between the starting ' `<!--`' and ending '`-->`'.
    Document | The `Document` interface represents the entire HTML or XML document.
    DocumentFragment | `DocumentFragment` is a "lightweight" or "minimal" `Document` object.
    DocumentType | Each `Document` has a `doctype` attribute whose value is either `null` or a `DocumentType` object.
    DOMConfiguration | The `DOMConfiguration` interface represents the configuration of a document and maintains a table of recognized parameters.
    DOMError | `DOMError` is an interface that describes an error.
    DOMErrorHandler | `DOMErrorHandler` is a callback interface that the DOM implementation can call when reporting errors that happens while processing XML data, or when doing some other processing (e.g.
    DOMImplementation | The `DOMImplementation` interface provides a number of methods for performing operations that are independent of any particular instance of the document object model.
    DOMImplementationList | The `DOMImplementationList` interface provides the abstraction of an ordered collection of DOM implementations, without defining or constraining how this collection is implemented.
    DOMImplementationSource | This interface permits a DOM implementer to supply one or more implementations, based upon requested features and versions, as specified in DOM Features.
    DOMLocator | `DOMLocator` is an interface that describes a location (e.g.
    DOMStringList | The `DOMStringList` interface provides the abstraction of an ordered collection of `DOMString` values, without defining or constraining how this collection is implemented.
    Element | The `Element` interface represents an element in an HTML or XML document.
    Entity | This interface represents a known entity, either parsed or unparsed, in an XML document.
    EntityReference | `EntityReference` nodes may be used to represent an entity reference in the tree.
    NamedNodeMap | Objects implementing the `NamedNodeMap` interface are used to represent collections of nodes that can be accessed by name.
    NameList | The `NameList` interface provides the abstraction of an ordered collection of parallel pairs of name and namespace values (which could be null values), without defining or constraining how this collection is implemented.
    Node | The `Node` interface is the primary datatype for the entire Document Object Model.
    NodeList | The `NodeList` interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.
    Notation | This interface represents a notation declared in the DTD.
    ProcessingInstruction | The `ProcessingInstruction` interface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document.
    Text | The `Text` interface inherits from `CharacterData` and represents the textual content (termed character data in XML) of an `Element` or `Attr`.
    TypeInfo | The `TypeInfo` interface represents a type referenced from `Element` or `Attr` nodes, specified in the schemas associated with the document.
    UserDataHandler | When associating an object to a key on a node using `Node.setUserData()` the application can provide a handler that gets called when the node the object is associated to is being cloned, imported, or renamed.

    Exception Summary
    Exception | Description
    --- | ---
    DOMException | DOM operations only raise exceptions in "exceptional" circumstances, i.e., when an operation is impossible to perform (either for logical reasons, because data is lost, or because the implementation has become unstable).

  - ### org.w3c.dom.bootstrap

    Class Summary
    Class | Description
    --- | ---
    DOMImplementationRegistry | A factory that enables applications to obtain instances of `DOMImplementation`.

  - ### org.w3c.dom.css

    Interface Summary
    Interface | Description
    --- | ---
    Counter | The `Counter` interface is used to represent any counter or counters function value.
    CSS2Properties | The `CSS2Properties` interface represents a convenience mechanism for retrieving and setting properties within a `CSSStyleDeclaration`.
    CSSCharsetRule | The `CSSCharsetRule` interface represents a @charset rule in a CSS style sheet.
    CSSFontFaceRule | The `CSSFontFaceRule` interface represents a @font-face rule in a CSS style sheet.
    CSSImportRule | The `CSSImportRule` interface represents a @import rule within a CSS style sheet.
    CSSMediaRule | The `CSSMediaRule` interface represents a @media rule in a CSS style sheet.
    CSSPageRule | The `CSSPageRule` interface represents a @page rule within a CSS style sheet.
    CSSPrimitiveValue | The `CSSPrimitiveValue` interface represents a single CSS value .
    CSSRule | The `CSSRule` interface is the abstract base interface for any type of CSS statement.
    CSSRuleList | The `CSSRuleList` interface provides the abstraction of an ordered collection of CSS rules.
    CSSStyleDeclaration | The `CSSStyleDeclaration` interface represents a single CSS declaration block.
    CSSStyleRule | The `CSSStyleRule` interface represents a single rule set in a CSS style sheet.
    CSSStyleSheet | The `CSSStyleSheet` interface is a concrete interface used to represent a CSS style sheet i.e., a style sheet whose content type is "text/css".
    CSSUnknownRule | The `CSSUnknownRule` interface represents an at-rule not supported by this user agent.
    CSSValue | The `CSSValue` interface represents a simple or a complex value.
    CSSValueList | The `CSSValueList` interface provides the abstraction of an ordered collection of CSS values.
    DocumentCSS | This interface represents a document with a CSS view.
    DOMImplementationCSS | This interface allows the DOM user to create a `CSSStyleSheet` outside the context of a document.
    ElementCSSInlineStyle | Inline style information attached to elements is exposed through the `style` attribute.
    Rect | The `Rect` interface is used to represent any rect value.
    RGBColor | The `RGBColor` interface is used to represent any RGB color value.
    ViewCSS | This interface represents a CSS view.

  - ### org.w3c.dom.events

    Interface Summary
    Interface | Description
    --- | ---
    DocumentEvent | The `DocumentEvent` interface provides a mechanism by which the user can create an Event of a type supported by the implementation.
    Event | The `Event` interface is used to provide contextual information about an event to the handler processing the event.
    EventListener | The `EventListener` interface is the primary method for handling events.
    EventTarget | The `EventTarget` interface is implemented by all `Nodes` in an implementation which supports the DOM Event Model.
    MouseEvent | The `MouseEvent` interface provides specific contextual information associated with Mouse events.
    MutationEvent | The `MutationEvent` interface provides specific contextual information associated with Mutation events.
    UIEvent | The `UIEvent` interface provides specific contextual information associated with User Interface events.

    Exception Summary
    Exception | Description
    --- | ---
    EventException | Event operations may throw an `EventException` as specified in their method descriptions.

  - ### org.w3c.dom.html

    Interface Summary
    Interface | Description
    --- | ---
    HTMLAnchorElement | The anchor element.
    HTMLAppletElement | An embedded Java applet.
    HTMLAreaElement | Client-side image map area definition.
    HTMLBaseElement | Document base URI.
    HTMLBaseFontElement | Base font.
    HTMLBodyElement | The HTML document body.
    HTMLBRElement | Force a line break.
    HTMLButtonElement | Push button.
    HTMLCollection | An `HTMLCollection` is a list of nodes.
    HTMLDirectoryElement | Directory list.
    HTMLDivElement | Generic block container.
    HTMLDListElement | Definition list.
    HTMLDocument | An `HTMLDocument` is the root of the HTML hierarchy and holds the entire content.
    HTMLDOMImplementation | The `HTMLDOMImplementation` interface extends the `DOMImplementation` interface with a method for creating an HTML document instance.
    HTMLElement | All HTML element interfaces derive from this class.
    HTMLFieldSetElement | Organizes form controls into logical groups.
    HTMLFontElement | Local change to font.
    HTMLFormElement | The `FORM` element encompasses behavior similar to a collection and an element.
    HTMLFrameElement | Create a frame.
    HTMLFrameSetElement | Create a grid of frames.
    HTMLHeadElement | Document head information.
    HTMLHeadingElement | For the `H1` to `H6` elements.
    HTMLHRElement | Create a horizontal rule.
    HTMLHtmlElement | Root of an HTML document.
    HTMLIFrameElement | Inline subwindows.
    HTMLImageElement | Embedded image.
    HTMLInputElement | Form control.
    HTMLIsIndexElement | This element is used for single-line text input.
    HTMLLabelElement | Form field label text.
    HTMLLegendElement | Provides a caption for a `FIELDSET` grouping.
    HTMLLIElement | List item.
    HTMLLinkElement | The `LINK` element specifies a link to an external resource, and defines this document's relationship to that resource (or vice versa).
    HTMLMapElement | Client-side image map.
    HTMLMenuElement | Menu list.
    HTMLMetaElement | This contains generic meta-information about the document.
    HTMLModElement | Notice of modification to part of a document.
    HTMLObjectElement | Generic embedded object.
    HTMLOListElement | Ordered list.
    HTMLOptGroupElement | Group options together in logical subdivisions.
    HTMLOptionElement | A selectable choice.
    HTMLParagraphElement | Paragraphs.
    HTMLParamElement | Parameters fed to the `OBJECT` element.
    HTMLPreElement | Preformatted text.
    HTMLQuoteElement | For the `Q` and `BLOCKQUOTE` elements.
    HTMLScriptElement | Script statements.
    HTMLSelectElement | The select element allows the selection of an option.
    HTMLStyleElement | Style information.
    HTMLTableCaptionElement | Table caption See the CAPTION element definition in HTML 4.0.
    HTMLTableCellElement | The object used to represent the `TH` and `TD` elements.
    HTMLTableColElement | Regroups the `COL` and `COLGROUP` elements.
    HTMLTableElement | The create* and delete* methods on the table allow authors to construct and modify tables.
    HTMLTableRowElement | A row in a table.
    HTMLTableSectionElement | The `THEAD` , `TFOOT` , and `TBODY` elements.
    HTMLTextAreaElement | Multi-line text field.
    HTMLTitleElement | The document title.
    HTMLUListElement | Unordered list.

  - ### org.w3c.dom.ls

    Interface Summary
    Interface | Description
    --- | ---
    DOMImplementationLS | `DOMImplementationLS` contains the factory methods for creating Load and Save objects.
    LSInput | This interface represents an input source for data.
    LSLoadEvent | This interface represents a load event object that signals the completion of a document load.
    LSOutput | This interface represents an output destination for data.
    LSParser | An interface to an object that is able to build, or augment, a DOM tree from various input sources.
    LSParserFilter | `LSParserFilter`s provide applications the ability to examine nodes as they are being constructed while parsing.
    LSProgressEvent | This interface represents a progress event object that notifies the application about progress as a document is parsed.
    LSResourceResolver | `LSResourceResolver` provides a way for applications to redirect references to external resources.
    LSSerializer | A `LSSerializer` provides an API for serializing (writing) a DOM document out into XML.
    LSSerializerFilter | `LSSerializerFilter`s provide applications the ability to examine nodes as they are being serialized and decide what nodes should be serialized or not.

    Exception Summary
    Exception | Description
    --- | ---
    LSException | Parser or write operations may throw an `LSException` if the processing is stopped.

  - ### org.w3c.dom.ranges

    Interface Summary
    Interface | Description
    --- | ---
    DocumentRange | See also the Document Object Model (DOM) Level 2 Traversal and Range Specification.
    Range | See also the Document Object Model (DOM) Level 2 Traversal and Range Specification.

    Exception Summary
    Exception | Description
    --- | ---
    RangeException | Range operations may throw a `RangeException` as specified in their method descriptions.

  - ### org.w3c.dom.stylesheets

    Interface Summary
    Interface | Description
    --- | ---
    DocumentStyle | The `DocumentStyle` interface provides a mechanism by which the style sheets embedded in a document can be retrieved.
    LinkStyle | The `LinkStyle` interface provides a mechanism by which a style sheet can be retrieved from the node responsible for linking it into a document.
    MediaList | The `MediaList` interface provides the abstraction of an ordered collection of media, without defining or constraining how this collection is implemented.
    StyleSheet | The `StyleSheet` interface is the abstract base interface for any type of style sheet.
    StyleSheetList | The `StyleSheetList` interface provides the abstraction of an ordered collection of style sheets.

  - ### org.w3c.dom.traversal

    Interface Summary
    Interface | Description
    --- | ---
    DocumentTraversal | `DocumentTraversal` contains methods that create `NodeIterators` and `TreeWalkers` to traverse a node and its children in document order (depth first, pre-order traversal, which is equivalent to the order in which the start tags occur in the text representation of the document).
    NodeFilter | Filters are objects that know how to "filter out" nodes.
    NodeIterator | `NodeIterators` are used to step through a set of nodes, e.g.
    TreeWalker | `TreeWalker` objects are used to navigate a document tree or subtree using the view of the document defined by their `whatToShow` flags and filter (if any).

  - ### org.w3c.dom.views

    Interface Summary
    Interface | Description
    --- | ---
    AbstractView | A base interface that all views shall derive from.
    DocumentView | The `DocumentView` interface is implemented by `Document` objects in DOM implementations supporting DOM Views.

Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2005, 2026, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.