WICG / scroll-to-text-fragment

Proposal to allow specifying a text snippet in a URL fragment
Other
589 stars 42 forks source link

Ensure restrictions on text directive scrolling match reality #240

Open bokand opened 10 months ago

bokand commented 10 months ago

There's a few places where Chrome's implementation has drifted from the spec. In particular, Chrome allows text directives in iframes, as long as the initiator is same origin with the iframe's document.

Another place where I need to take a closer look is restrictions around same-document navigations.

More generally, we need to survey what other implementations are doing, ensure there's good browser test coverage and that the spec is up-to-date with real-world behavior.

bokand commented 10 months ago

Some initial findings based on this test page:

Same Document

Subframes

Opener Isolation