12 ms·
One would want to ensure that the anchor was guaranteed to be distinct from every id on the page (e.g. if this submission had title 'up_7536771', browsers would
by dbaupp 13y ago
One would want to ensure that the anchor was guaranteed to be distinct from every id on the page (e.g. if this submission had title 'up_7536771', browsers would jump to your upvote button if the title was just appended).
- icebraining 13y agoYou can just prepend a character that is valid in the URL but invalid for an id, like a colon. E.g. https://news.ycombinator.com/item?id=7536719#:ask_hn_mods