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 .


fragment = new DocumentFragment()


let fragment = new DocumentFragment();


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

Browser compatibility

Update compatibility data on GitHub
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Basic support
Chrome Full support 28Edge Full support YesFirefox Full support 24IE No support NoOpera Full support 15Safari No support NoWebView Android Full support YesChrome Android Full support YesEdge Mobile Full support YesFirefox Android Full support 24Opera Android Full support YesSafari iOS ? Samsung Internet Android Full support Yes


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

See also

Document Tags and Contributors

Last updated by: mdnwebdocs-bot,