Follow

Web browsers should provide autocompletion for URL fragments for the current page.

Also, I should be able to address a fragment *just* by typing "#" + fragment_identifier, instead of current_url + "#" + fragment_identifier.

@colby Well, shouldn't the last one already work by just selecting the location bar, hitting right arrow if it selected the whole entry and then typing your fragment?

And yeah, given that most website hides the url fragments away, being able to get completion or just a page-sorted listing of them would be neat. *files a bug to get a proper API in WebKitGTK*

@lanodan @colby I think this would only be useful in combination with an ARIA attribute or similar on the respective elements. I'd wager that the vast majority (95%+) of element IDs are not used or usable as anchors on today's Web.

@raucao @lanodan okay, maybe by filtering with some heuristics like "is this ID the ID of a heading?" Actually, just building up an autocompletion list on that alone would probably get us the 80 of 80/20.

Aside from that, a lot of the pages that have unusable anchors are pages where people are unlikely to be using the feature. E.g. checking the homepage for new Reddit—an egregious 1100+ autogenerated element IDs. But there's hardly a use case for trying to address something there, anyway.

@raucao @lanodan there's also the matter of feature availability shaping authoring choices. People get yelled at for breaking the back button, so most (not all, but most) devs avoid doing that.

We'd probably have seen a similar feedback loop for rel=next if mainstream browsers actually had UI for it. (That's not necessarily a lost cause even now. Chrome could add it tomorrow—and people would say the devs are geniuses and then go add this "new" thing to all their sites.)

@colby @raucao Reminds me that I had a firefox extension for rel=next/prev/… back when it was XUL-based, was pretty nice for webcomics and going through blogs.

And yeah it would make sense to limit anchors to some elements (headings, sections, article, a, …).
Sign in to participate in the conversation
kosmos.social

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!