Browser compatibility guides

Document.fragmentDirective

Which browsers can use this member of the Document interface?

Browser support

By , all four targets had shipped the implementation listed below. Devices still running an older browser can need a fallback.

First release of the recorded unqualified implementation
BrowserVersionRelease date
Chrome862020-10-20
Firefox1312024-10-01
Safari on macOS18.42025-03-31
Safari on iOS18.42025-03-31

What to test before release

Run the user journey that reaches Document.fragmentDirective on your oldest supported browser. Test what the user sees if that member is unavailable. Record whether the task still finishes, which fallback ran, and whether the result was saved correctly.

The table describes implementation availability. Device capabilities, the execution context, and user permissions can affect runtime behavior. Read the MDN reference for fragmentDirective.

Related release notes

More from Document

Growth Purple engineering reference. Version comparisons use MDN Browser Compatibility Data v8.1.10, snapshot 2026-11-19, released under CC0.