-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mark text fragments #11
Comments
@kiru are you sure authors would want to include something that is browser specific? I agree that text fragments seems to enrich the web, but it is only usable in Chrome, and its derivatives (Edge, for example). |
@kiru I would also look at the issues raised in mozilla/standards-positions#194 |
Tom here from the Google Chrome team. I came here to file exactly this issue… :-)
The Text Fragments URL syntax will simply be ignored by browsers that don't understand it. Edge does support it, too. See my article for the full details. Happy to answer questions. |
@tomayac no need to advertise your article, thank you. We all know that browsers without Text Fragments implementation will ignore it. On my comment I wrote "it is only usable in Chrome, and its derivatives (Edge, for example)," so you are not adding anything new, other than trying to plug your article (which I will not read). |
@tomayac we are definitely exploring the idea of using text fragments. In practice however we've found the implementation incredibly inconsistent (see this post I wrote for more: https://tomcritchlow.com/2020/06/10/scrolltotextfragment/). Perhaps you can help us integrate it correctly into the app? |
@tomcritchlow for what is worth, all the examples you provided on your post worked for me, using Chrome Version 83.0.4103.97 (Official Build) (64-bit) under macOS. |
@Fastidious indeed. Those examples are currently working for me too. The inconsistency drives me crazy. The same link on different days can work/not work. |
First, there is a known limitation with Text Fragments links not to work with JavaScript redirects as used on Twitter (https://t.co). Follow https://crbug.com/1055455 for details. Second: there're some security restrictions in place: https://web.dev/text-fragments/#security (@[redacted], don't click this link, please). @tomcritchlow All your examples in your article work when opened in a new tab.
🕊 In order not to overly promote my article, here's the new bit, extracted exclusively for @[redacted]:
The code is open-source (@[redacted], sorry for plugging the repo): |
Hello,
Chrome has a new feature which allows highlighting certain parts of the content.
Like this:
https://sometimesright.com/2020/04/25/blogging-vs-twitter/#:~:text=To%20me,quantity
It would be more user friendly to add the parts int he URL.
edit: they are called text fragments: https://twitter.com/david_bokan/status/1267902225281622020
The text was updated successfully, but these errors were encountered: