Uses of Interface org.w3c.dom.DocumentFragment (Common DOM API )
Date: 2026-04-22

## Uses of Interface
org.w3c.dom.DocumentFragment

- Packages that use DocumentFragment
  Package | Description
  --- | ---
  org.w3c.dom | Provides the interfaces for the Document Object Model (DOM).
  org.w3c.dom.ranges | Document Object Model Level 2 Traversal and Range is a platform and language-neutral interfaces that allow programs and scripts to dynamically traverse and identify a range of content in a document.

- - ### Uses of DocumentFragment in org.w3c.dom

    Methods in org.w3c.dom that return DocumentFragment
    Modifier and Type | Method and Description
    --- | ---
    `DocumentFragment` | Document.`createDocumentFragment()` Creates an empty `DocumentFragment` object.

  - ### Uses of DocumentFragment in org.w3c.dom.ranges

    Methods in org.w3c.dom.ranges that return DocumentFragment
    Modifier and Type | Method and Description
    --- | ---
    `DocumentFragment` | Range.`cloneContents()` Duplicates the contents of a Range
    `DocumentFragment` | Range.`extractContents()` Moves the contents of a Range from the containing document or document fragment to a new DocumentFragment.

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.