DocumentFragment()

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

Syntax

fragment = new DocumentFragment()

Example

let fragment = new DocumentFragment();

Specification

Specification Status Comment
DOM
The definition of 'DocumentFragment()' in that specification.
Living Standard Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
DocumentFragment() constructor
Experimental
Chrome Full support 28Edge Full support YesFirefox Full support 24IE No support NoOpera Full support 15Safari Full support 8WebView Android Full support YesChrome Android Full support YesFirefox Android Full support 24Opera Android Full support YesSafari iOS Full support 8Samsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

See also