Browsers fuzzy-matching URL fragments?
10:41 10 Feb 2026

In several browsers (Firefox, Edge, Brave), URL https://github.com/rdp/ruby_tutorials_core/wiki/Ruby-Talk-FAQ#user-content--why-are-rubys-floats-imprecise, takes us to the correct page and scrolls us to the correct fragment target -- an anchor ('a' element) that has attribute id="user-content--why-are-rubys-floats-imprecise".

These same browsers exhibit the exact same behavior if the URL fragment is abbreviated to #-why-are-rubys-floats-imprecise.

My questions: Are these browsers doing some sort of fuzzy matching on the fragment? If so, what sorts of abbreviations can we count on? And will those vary among browsers?

url browser