Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Editorial: make Document's 'page showing' flag a boolean #11099

Merged
merged 3 commits into from
Mar 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -105146,11 +105146,10 @@ location.href = '#foo';</code></pre>

<li>
<p>If <var>document</var>'s <span>current document readiness</span> is "<code
data-x="">complete</code>", and <var>document</var>'s <span>page showing</span> flag is false,
then:</p>
data-x="">complete</code>", and <var>document</var>'s <span>page showing</span> is false:</p>

<ol>
<li><p>Set <var>document</var>'s <span>page showing</span> flag to true.</p></li>
<li><p>Set <var>document</var>'s <span>page showing</span> to true.</p></li>

<li><p>Set <var>document</var>'s <span>has been revealed</span> to false.</p>

Expand Down Expand Up @@ -106426,10 +106425,10 @@ new PaymentRequest(&hellip;); // Allowed to use

<p>A <code>Document</code> has a <dfn
data-x="concept-document-salvageable"><i>salvageable</i></dfn> state, which must initially be
true, and a <dfn>page showing</dfn> flag, which must initially be false. The <span>page
showing</span> flag is used to ensure that scripts receive <code
true, and a <dfn>page showing</dfn> boolean, which is initially false. The <span>page
showing</span> boolean is used to ensure that scripts receive <code
data-x="event-pageshow">pageshow</code> and <code data-x="event-pagehide">pagehide</code> events
in a consistent manner (e.g. that they never receive two <code
in a consistent manner (e.g., that they never receive two <code
data-x="event-pagehide">pagehide</code> events in a row without an intervening <code
data-x="event-pageshow">pageshow</code>, or vice versa).</p>

Expand Down Expand Up @@ -134323,7 +134322,7 @@ document.body.appendChild(text);
<li><p><span>Assert</span>: <code>Document</code>'s <span>page showing</span> is
false.</p></li>

<li><p>Set the <code>Document</code>'s <span>page showing</span> flag to true.</p></li>
<li><p>Set the <code>Document</code>'s <span>page showing</span> to true.</p></li>

<li><p><span>Fire a page transition event</span> named <code
data-x="event-pageshow">pageshow</code> at <var>window</var> with false.</p></li>
Expand Down