News for hackers. Stuff that matters.
Re:Chrome will Soon Let You Share Links to a Specific Word o... by coldtea on Friday February 15, 2019 @06:51AM (#19170114)
>Aren't url fragment originally used for page position already? Like url.com/#title would scroll to the page the div with id "title"?

That was the pre-SPA, traditional role of anchors...

If you did any html between 1995-6 and 2005, you'd use it for that.

Then, with AJAX/SPAs, # was used for state (pre-history API) -- and I'd assume many webpages are still left at that use.

Re:Chrome will Soon Let You Share Links to a Specific Word o... by tyingq on Friday February 15, 2019 @07:34AM (#19170324)
Of course, page anchors are still in wide use, and not just on old pages. https://github.com/facebook/react/blob/master/README.md#inst...
Re:Chrome will Soon Let You Share Links to a Specific Word o... by reaperducer on Friday February 15, 2019 @09:01AM (#19170949)
Very wide use.

I just finished a large healthcare web site that uses page anchors.

Page anchors are recommended by one of the (many) federal web accessibility guidelines. This is so that people with limited motion or poor motor control, or visual impairments don’t have to scroll to find what they’re looking for on a page.

It’s also how the “Skip to content” links work, which is Accessibility 101.

Sorry, I’m not at work or on a computer so I can’t link to a reference.

Re:Chrome will Soon Let You Share Links to a Specific Word o... by reaperducer on Friday February 15, 2019 @11:05AM (#19171962)
Here's a reference for "Skip to content" for those who have never bothered to make their web sites usable for people who aren't 20-somethings in perfect health (Google):

https://webaim.org/techniques/skipnav/