Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
1–10 of 332 posts
Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
#2But the functionality feels like it'd be prone to breakage as new text is added to the document (possible in Wikipedia articles for example). But it'd be super-helpful for search engines as they will have a relatively recent copy of the text, and can auto-generate the links on the backend before showing the search results to the user.
Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
#3> In URIs for MIME text/plain documents RFC 5147 specifies a fragment identifier for the character and line positions and ranges within the document using the keywords "char" and "line". Some popular browsers do not yet support RFC 5147.[5] The following example identifies lines 11 through 20 of a text document: http://example.com/document.txt#line=10,20
Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
#4Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
#5Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
#6Also, what happens if the page already has an anchor text that happens to be the exact match? i.e. #targetText=My%20Heading is already an existing anchor
Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
#7Seems very cool! But the functionality feels like it'd be prone to breakage as new text is added to the document (possible in Wikipedia articles for example). But it'd be super-helpful for search engines as they will have a relatively recent copy of the text, and can auto-generate the links on the backend before showing the search results to the user.
You are right that the link is somewhat time limited. However, tools like emacs and ctags show this can be somewhat worked with. Instead of the very specific links that grep creates, generate one that has a location, but also a small pattern that indicates it. To that end, you could generate a link to the word "breakage" with a selector saying where it is expected. And the browser can then just fudge around that selector to find that word. Or highlight where it was expected.
Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
#8Seems very cool! But the functionality feels like it'd be prone to breakage as new text is added to the document (possible in Wikipedia articles for example). But it'd be super-helpful for search engines as they will have a relatively recent copy of the text, and can auto-generate the links on the backend before showing the search results to the user.
Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
#9What is the expected behavior if you highlight a second instance of some target text and try to create a link to it? It’s bad that the spec doesn’t discuss it. I can see this happening with short selections, like linking to a single word.
Seems like this could use more thought.
Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page
#10Seems very cool! But the functionality feels like it'd be prone to breakage as new text is added to the document (possible in Wikipedia articles for example). But it'd be super-helpful for search engines as they will have a relatively recent copy of the text, and can auto-generate the links on the backend before showing the search results to the user.
Yes, it would fail if the target text no longer exists in the page but link rot is already commonplace. It would be important for it to ignore DOM elements, it can't fail because the target text crosses two paragraphs or a span.