-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Description
Describe the new feature or change to an existing feature you'd like to see
Chrome has implemented this new W3C draft spec about Text Fragments that allows linking to specific parts of a web page. Upon opening the link the browser will scroll-to and highlight the specified section.
While this works on most sites, one big issue with the feature currently is that it doesn't work on AMP pages. For example, the text fragment anchor part of the URL seems stripped from most AMP pages when loaded. From my understanding of AMP, there might be other issues even if the fragment was not stripped.
Some examples:
- https://www.google.com/amp/ampexamples.com/amp-html-1410.html#:~:text=Recently%20the%20AMP%20project%20becomes%20more%20and%20more%20popular,%20especially%20considering%20it's%20being%20powered
- https://amp-reddit-com.cdn.ampproject.org/v/s/amp.reddit.com/r/OutOfTheLoop/comments/53ztlp/what_is_ampredditcom/?amp_js_v=a6&_gsa=1&usqp=mq331AQHKAFQArABIA%3D%3D#:~:text=some-,Reddit,-threads
There seems to be a way to make this work since some pages loaded from a search results page work (e.g. search for "when is ios 14.3 coming out")
Would it be possible to add support for scroll-to text fragments?
Reactions are currently unavailable