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

The DocumentFragment() constructor returns an empty newly created DocumentFragment object .

Syntax

fragment = new DocumentFragment()

Example

fragment = new DocumentFragment();

Specification

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

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support28 No24 No15 No
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes Yes24 Yes ? Yes

See also

Document Tags and Contributors

 Contributors to this page: angel-luis, ExE-Boss, fscholz, jsx, nseptier, nairakhil13, teoli
 Last updated by: angel-luis,