Open Bug 1753933 Opened 2 years ago Updated 23 hours ago

Implement Text Fragments (formerly Scroll to Text Fragment)

Categories

(Core :: DOM: Navigation, enhancement)

enhancement

Tracking

()

People

(Reporter: annevk, Assigned: jjaschke)

References

(Depends on 15 open bugs, Blocks 2 open bugs, )

Details

(Keywords: parity-chrome, parity-edge, parity-safari)

Specification: https://wicg.github.io/scroll-to-text-fragment/

standards-positions: https://github.com/mozilla/standards-positions/issues/194

(As part of implementing this we should figure out how to move this specification to a proper standards venue and ideally have that sorted before shipping.)

Blocks: 1779688
Duplicate of this bug: 637638

Note that Google Search seems to be using this feature to scroll to precise content from search results:
https://til.simonwillison.net/html/scroll-to-text

Assignee: nobody → jjaschke

For accessibility, at a minimum, we need to notify accessibility APIs of the node to which the page has scrolled. See nsAccessibilityService::NotifyOfAnchorJumpTo.

Even with this, significant parts of this feature will be inaccessible:

  1. There is no way for an assistive technology user to perceive the exact text which is visually highlighted. They only know about the node in which the text begins.
  2. There is no way for an assistive technology user to perceive any text directives other than the first.

We should ideally figure out and implement these before we ship this.

See also https://github.com/WICG/scroll-to-text-fragment/issues/142#issuecomment-1709325246

Depends on: 1867939
Depends on: 1867940
Depends on: 1868732
Depends on: 1876307
Depends on: 1876308
Depends on: 1876324
Depends on: 1876524
Depends on: 1881429
Depends on: 1888756
Depends on: 1860915

Any news on the arrival time of this feature?

Hi Frank,

thank you for your interest in this feature. While I can not give you an exact arrival time (and I can only speak for the DOM part of this, ie. opening a link that contains a text fragment, not creating a link to a text fragment), I can tell you that we are actively working on this and you can expect this feature to be turned on in Nightly in the next couple weeks / months.

Depends on: 1890733

Good evening Jan,

Thanks for the detailed answer!

Depends on: 1895555
Depends on: 1897942
Depends on: 1897956
Depends on: 1898536
Depends on: 1898630
Depends on: 1899567
See Also: → 1901045
Depends on: 1901064
Depends on: 1901139
Depends on: 1904773
Depends on: 1904796
You need to log in before you can comment on or make changes to this bug.