Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
  
  
    
    
    org.w3c.dom
    Interfaces
    
      
        
          | Attr | The Attrinterface represents an attribute in anElementobject. | 
        
          | CDATASection | CDATA sections are used to escape blocks of text containing characters that would otherwise be regarded as markup. | 
        
          | CharacterData | The CharacterDatainterface extends Node with a set of attributes and methods for accessing character data in the DOM. | 
        
          | Comment | This interface inherits from CharacterDataand represents the content of a comment, i. | 
        
          | Document | The Documentinterface represents the entire HTML or XML document. | 
        
          | DocumentFragment | DocumentFragmentis a "lightweight" or "minimal"Documentobject.
 | 
        
          | DocumentType | Each Documenthas adoctypeattribute whose value is eithernullor aDocumentTypeobject. | 
        
          | DOMConfiguration | The DOMConfigurationinterface represents the configuration of a document and maintains a table of recognized parameters. | 
        
          | DOMError | DOMErroris an interface that describes an error.
 | 
        
          | DOMErrorHandler | DOMErrorHandleris 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. validating a document).
 | 
        
          | DOMImplementation | The DOMImplementationinterface provides a number of methods for performing operations that are independent of any particular instance of the document object model. | 
        
          | DOMImplementationList | The DOMImplementationListinterface 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 . | 
        
          | DOMLocator | DOMLocatoris an interface that describes a location (e.g. where an error occurred).
 | 
        
          | DOMStringList | The DOMStringListinterface provides the abstraction of an ordered collection ofDOMStringvalues, without defining or constraining how this collection is implemented. | 
        
          | Element | The Elementinterface 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 | EntityReferencenodes may be used to represent an entity reference in the tree.
 | 
        
          | NamedNodeMap | Objects implementing the NamedNodeMapinterface are used to represent collections of nodes that can be accessed by name. | 
        
          | NameList | The NameListinterface 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 Nodeinterface is the primary datatype for the entire Document Object Model. | 
        
          | NodeList | The NodeListinterface 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 ProcessingInstructioninterface represents a "processing instruction", used in XML as a way to keep processor-specific information in the text of the document. | 
        
          | Text | The Textinterface inherits fromCharacterDataand represents the textual content (termed character data in XML) of anElementorAttr. | 
        
          | TypeInfo | The TypeInfointerface represents a type referenced fromElementorAttrnodes, 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. | 
      
    
    Exceptions
    
      
        
          | DOMException | DOM operations only raise exceptions in "exceptional" circumstances, i. | 
      
    
  
  
  
    
  
 
  
    
    
      
       
    
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [null,null,["Last updated 2025-02-10 UTC."],[],[]]