A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://developer.mozilla.org/en-US/docs/Web/API/DocumentFragment/DocumentFragment below:

DocumentFragment: DocumentFragment() constructor - Web APIs

MDN Web Docs
  1. Web
  2. Web APIs
  3. DocumentFragment
  4. DocumentFragment()

Filter sidebar

In this article
  1. Document Object Model (DOM)
  2. DocumentFragment
  3. Constructor
    1. DocumentFragment()
  4. Instance properties
    1. childElementCount
    2. children
    3. firstElementChild
    4. lastElementChild
  5. Instance methods
    1. append()
    2. getElementById()
    3. moveBefore() Experimental
    4. prepend()
    5. querySelector()
    6. querySelectorAll()
    7. replaceChildren()
  6. Inheritance
    1. Node
    2. EventTarget
  7. Related pages for DOM
    1. AbortController
    2. AbortSignal
    3. AbstractRange
    4. Attr
    5. CDATASection
    6. CharacterData
    7. Comment
    8. CustomEvent
    9. DOMError Deprecated
    10. DOMException
    11. DOMImplementation
    12. DOMParser
    13. DOMPoint
    14. DOMPointReadOnly
    15. DOMRect
    16. DOMTokenList
    17. Document
    18. DocumentType
    19. Element
    20. Event
    21. EventTarget
    22. HTMLCollection
    23. MutationObserver
    24. MutationRecord
    25. NamedNodeMap
    26. Node
    27. NodeIterator
    28. NodeList
    29. ProcessingInstruction
    30. Range
    31. StaticRange
    32. Text
    33. TextDecoder
    34. TextEncoder
    35. TimeRanges
    36. TreeWalker
    37. XMLDocument
  8. Guides
    1. Introduction to the DOM
    2. Using the Document Object Model
    3. Attribute reflection
    4. Traversing an HTML table with JavaScript and DOM Interfaces
    5. Locating DOM elements using selectors
    6. Working with events
    7. Examples of web and XML development using the DOM
In this article DocumentFragment: DocumentFragment() constructor

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2018.

The DocumentFragment() constructor returns a new, empty DocumentFragment object.

Syntax

js

new DocumentFragment()
Parameters

None.

Return value

A new DocumentFragment object.

Specifications Specification DOM
# ref-for-dom-documentfragment-documentfragment①
Browser compatibility Help improve MDN Was this page helpful to you? Learn how to contribute

.

This page was last modified on Apr 7, 2023 by MDN contributors.

View this page on GitHub

•

Report a problem with this content

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4