WICG / scroll-to-text-fragment

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

Location IDL incorrect; should be partial interface #106

Closed stephenmcgruer closed 4 years ago

stephenmcgruer commented 4 years ago

I am assuming from scanning the spec that it intends to extend https://html.spec.whatwg.org/multipage/history.html#the-location-interface, which should be done via a partial interface (https://heycam.github.io/webidl/#dfn-partial-interface) rather than just re-declaring Location. Something like:

partial interface Location {
    readonly attribute FragmentDirective fragmentDirective;
}

This came up when we tried to add the spec to WPT: https://github.com/web-platform-tests/wpt/pull/23828