HTMLDOMImplementation (Java SE 14 & JDK 14)
Description: declaration: module: jdk.xml.dom, package: org.w3c.dom.html, interface: HTMLDOMImplementation
Keywords: org.w3c.dom.html.HTMLDOMImplementation interface

Module jdk.xml.dom
Package org.w3c.dom.html

# Interface HTMLDOMImplementation

All Superinterfaces:
  `DOMImplementation`

    public interface HTMLDOMImplementation
    extends DOMImplementation

The `HTMLDOMImplementation` interface extends the `DOMImplementation` interface with a method for creating an HTML document instance.

Since:
  1.4, DOM Level 2

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `HTMLDocument` | `createHTMLDocument​(String title)` | Creates an `HTMLDocument` object with the minimal tree made of the following elements: `HTML` , `HEAD` , `TITLE` , and `BODY` .

  ### Methods declared in interface org.w3c.dom.DOMImplementation

  `createDocument, createDocumentType, getFeature, hasFeature`

- ## Method Details

  - ### createHTMLDocument

    HTMLDocument createHTMLDocument​(String title)
    Creates an `HTMLDocument` object with the minimal tree made of the following elements: `HTML` , `HEAD` , `TITLE` , and `BODY` .
    Parameters:
      `title` - The title of the document to be set as the content of the `TITLE` element, through a child `Text` node.
    Returns:
      A new `HTMLDocument` object.