Live data from Hacker News

Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

chromestory.com

31–40 of 332 posts

Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

#31
post #21

I'd like this for PDFs. Often I want to share a PDF opened at a specific text. You can create a pdf url which jumps to a certain page. You can even link to a search for a certain word (single word). But I can't link to a search phrase in a PDF. For some reason, they implemented searching for single words, but not phrases.

Searching for text in PDFs is a not easy to do in general.

Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

#32
post #9

Very significant limitation: it only links to the first instance of the target text. What 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.

Perhaps it could automatically expand the selection until it becomes unique, and support an index property for cases in which that would result in an unreasonably large selection (or hits EOF).

Using indices alone would also work, but would be exceptionally prone to link rot as text changes, especially in the case of short (e.g. 1-word) selections.

Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

#33
post #3

I can't find an RFC about this, but it looks like something similar has been proposed in the past, with a slightly different API. > 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…

I must say I prefer the RFC version - while still vulnerable to rotting from text changes, at least it should still link to the same general vicinity.

Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

#34
post #14

It seems like more and more, Google is leveraging their near-monopoly on web browsing to just skip the proposal process and do whatever they want without discussion.

It’s almost as if Google is the new Microsoft!

Embrace, Extend, Extinguish

Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

#35
post #14

It seems like more and more, Google is leveraging their near-monopoly on web browsing to just skip the proposal process and do whatever they want without discussion.

I agree with you on Google's monopoly but imagine if every browser has to go through proposal process to release any feature? Everything will just stagnate.

Browsers copy features from each other. If this is a useful feature, it would make its way to other browsers pretty soon.

Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

#36
post #9

Very significant limitation: it only links to the first instance of the target text. What 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.

They could fix this by having a second query string parameter, say, "targetInstance". Which would take the number of the instance. Indeed, things like this would have come to light sooner if they went through a more normal RFC process.

Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

#38
post #9

Very significant limitation: it only links to the first instance of the target text. What 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.

Also will it be able to make the link opening party to execute malicious requests? Think 'delegated fuzzing'.

Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

#39
post #14

It seems like more and more, Google is leveraging their near-monopoly on web browsing to just skip the proposal process and do whatever they want without discussion.

Browsers have always done that

We've had a time when standards were at the forefront, between the death of the last browser monoculture, and the establishment of the current one.

It was good while it lasted.

Re: Chrome will Soon Let You Share Links to a Specific Word or Sentence on a Page

#40
post #39

Earlier quoted context omitted.

Browsers have always done that

We've had a time when standards were at the forefront, between the death of the last browser monoculture, and the establishment of the current one. It was good while it lasted.

if you don't specify a timeframe you can't be contested and therefore your nostalgia reads like it is for a time that never existed except in your mind
Post reply on HN