mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-03 09:48:38 +02:00
This behavior was already agreed upon in <https://github.com/whatwg/html/issues/7386>, but bug 1544428 was an implementation edge case needing to be fixed. An exception is when the fragment contains a directive, in which case a difference in `hasRef` is sufficient, to retain existing behavior WRT directives. Although bug 1544428 is about popstate, hashchange was erroneously being dispatched, as well, which this patch fixes. Some tests that depended on the old behavior are updated. Differential Revision: https://phabricator.services.mozilla.com/D225567
1 line
29 B
HTML
1 line
29 B
HTML
<a href=#section>clickme</a>
|