News for hackers. Stuff that matters.
Re:Chrome will Soon Let You Share Links to a Specific Word o... by creato on Friday February 15, 2019 @12:56PM (#19173062)
This is not rare at all, I use it almost every time I link to a wikipedia article, for example: https://en.wikipedia.org/wiki/Newton%27s_method#Examples

That said, it seems easy to make this backwards compatible: if the existing #blah syntax is a valid link, that should take precedence.

FWIW, I think there's way too much cynicism in this thread. My first reaction on seeing the title was "cool! I would use that!".

edit: Hmm, I may have misunderstood the compatibility issue.

Re:Chrome will Soon Let You Share Links to a Specific Word o... by bokan on Friday February 15, 2019 @01:28PM (#19173394)
> That said, it seems easy to make this backwards compatible: if the existing #blah syntax is a valid link, that should take precedence.

That's indeed how it works. The majority of the compatibility concerns appear to be with apps that a using _custom_ parsing of the fragment to perform app-specific logic, which is a valid concern.

Re:Chrome will Soon Let You Share Links to a Specific Word o... by kiliancs on Friday February 15, 2019 @03:07PM (#19174238)
Angular 1 does this.
Re:Chrome will Soon Let You Share Links to a Specific Word o... by adrianmonk on Friday February 15, 2019 @10:16PM (#19176825)
FYI, there's even a Chrome extension that makes this easier:

https://chrome.google.com/webstore/detail/display-anchors/po...

Re:Chrome will Soon Let You Share Links to a Specific Word o... by tedmiston on Friday February 15, 2019 @04:10PM (#19174747)
The parent comment's example includes a trailing equals sign on the fragment that could be used to differentiate (#targetText= vs #targetText).