Skip to content

Commit c43aff8

Browse files
committed
Don't set hashChange to true for classic history API navigate events
Closes whatwg#10389.
1 parent c56e559 commit c43aff8

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

source

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94761,6 +94761,10 @@ interface <dfn interface>NavigationDestination</dfn> {
9476194761
<p>If all of the following are true:</p>
9476294762

9476394763
<ul>
94764+
<li><p><var>event</var>'s <span
94765+
data-x="concept-NavigateEvent-classic-history-API-state">classic history API state</span> is
94766+
null;</p></li>
94767+
9476494768
<li><p><var>destination</var>'s <span data-x="concept-NavigationDestination-sameDocument">is
9476594769
same document</span> is true;</p></li>
9476694770

@@ -94776,6 +94780,11 @@ interface <dfn interface>NavigationDestination</dfn> {
9477694780
<p>then initialize <var>event</var>'s <code
9477794781
data-x="dom-NavigateEvent-hashChange">hashChange</code> to true. Otherwise, initialize it to
9477894782
false.</p>
94783+
94784+
<p class="note">The first condition here means that <code
94785+
data-x="dom-NavigateEvent-hashChange">hashChange</code> will be true for <span
94786+
data-x="navigate-fragid">fragment navigations</span>, but false for cases like <code
94787+
data-x="">history.pushState(undefined, "", "#fragment")</code>.</p>
9477994788
</li>
9478094789

9478194790
<li><p>If <var>userInvolvement</var> is not "<code data-x="uni-none">none</code>", then

0 commit comments

Comments
 (0)