This change moves window.location.fragmentDirective to document.fragmentDirective which seems like a more appropriate and safer place. It is a small change to the text-fragments feature in Text-fragments introduced an empty object at window.location.fragmentDirective as a means to feature detect the newly added text-fragment capability. window.location turns out to be a bad place for this functionality, see

Status in Chromium

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.

Intent to Prototype url

Intent to Prototype thread

Last updated on 2021-03-01