Skip to content

Commit

Permalink
Merge branch 'whatwg:main' into nrr-add
Browse files Browse the repository at this point in the history
  • Loading branch information
rubberyuzu authored Jun 25, 2024
2 parents caba155 + 91b0398 commit 6bff4c8
Show file tree
Hide file tree
Showing 2 changed files with 71 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 2
path: 'source'
Expand Down
84 changes: 70 additions & 14 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -2937,6 +2937,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-automatic-semicolon-insertion">automatic semicolon insertion</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-candidate-executions">candidate execution</dfn></li>
<li>The <dfn data-x-href="https://tc39.es/ecma262/#current-realm">current realm</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#clamping">clamping</dfn> a mathematical value</li>
<li><dfn data-x-href="https://tc39.es/ecma262/#early-error-rule">early error</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-forward-progress">forward progress</dfn></li>
<li><dfn data-x-href="https://tc39.es/ecma262/#sec-invariants-of-the-essential-internal-methods">invariants of the essential internal methods</dfn></li>
Expand Down Expand Up @@ -3110,6 +3111,15 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<ul class="brief">
<li>The <dfn data-x-href="https://tc39.es/proposal-resizablearraybuffer/#sec-isarraybufferviewoutofbounds">IsArrayBufferViewOutOfBounds</dfn> abstract operation</li>
</ul>

<p>User agents that support JavaScript must also implement the <cite>Temporal</cite> proposal.
The following terms are defined there, and used in this specification: <ref>JSTEMPORAL</ref></p>

<ul class="brief">
<li>The <dfn data-x="js-HostSystemUTCEpochNanoseconds" data-x-href="https://tc39.es/proposal-temporal/#sec-hostsystemutcepochnanoseconds">HostSystemUTCEpochNanoseconds</dfn> abstract operation</li>
<li>The <dfn data-x-href="https://tc39.es/proposal-temporal/#eqn-nsMaxInstant">nsMaxInstant</dfn> and
<dfn data-x-href="https://tc39.es/proposal-temporal/#eqn-nsMinInstant">nsMinInstant</dfn> values</li>
</ul>
</dd>

<dt>WebAssembly</dt>
Expand Down Expand Up @@ -3406,20 +3416,20 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
<li><dfn data-x-href="https://fullscreen.spec.whatwg.org/#fullscreen-flag">fullscreen flag</dfn></li>
</ul>

<p><cite>High Resolution Time</cite> provides the <dfn
data-x-href="https://w3c.github.io/hr-time/#dfn-current-high-resolution-time">current high
resolution time</dfn>, the <dfn
data-x-href="https://w3c.github.io/hr-time/#dfn-relative-high-resolution-time">relative high
resolution time</dfn>, the <dfn
data-x-href="https://w3c.github.io/hr-time/#dfn-unsafe-shared-current-time">unsafe shared
current time</dfn>, the <dfn
data-x-href="https://w3c.github.io/hr-time/#dfn-shared-monotonic-clock">shared monotonic clock</dfn>,
the <dfn data-x-href="https://w3c.github.io/hr-time/#dfn-unsafe-moment">unsafe moment</dfn>,
the <dfn data-x-href="https://w3c.github.io/hr-time/#dfn-duration-from">duration from</dfn>,
the <dfn data-x-href="https://w3c.github.io/hr-time/#dfn-coarsen-time">coarsen time</dfn>
algorithm, and the <dfn
data-x-href="https://w3c.github.io/hr-time/#dom-domhighrestimestamp"><code>DOMHighResTimeStamp</code></dfn>
typedef. <ref>HRT</ref></p>
<p><cite>High Resolution Time</cite> provides the following features: <ref>HRT</ref></p>

<ul class="brief">
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dfn-current-high-resolution-time">current high resolution time</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dfn-relative-high-resolution-time">relative high resolution time</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dfn-unsafe-shared-current-time">unsafe shared current time</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dfn-shared-monotonic-clock">shared monotonic clock</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dfn-unsafe-moment">unsafe moment</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dfn-duration-from">duration from</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dfn-coarsen-time">coarsen time</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dfn-current-wall-time">current wall time</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dfn-unix-epoch">Unix epoch</dfn></li>
<li><dfn data-x-href="https://w3c.github.io/hr-time/#dom-domhighrestimestamp"><code>DOMHighResTimeStamp</code></dfn></li>
</ul>
</dd>


Expand Down Expand Up @@ -94932,6 +94942,10 @@ interface <dfn interface>NavigationDestination</dfn> {
<p>If all of the following are true:</p>

<ul>
<li><p><var>event</var>'s <span
data-x="concept-NavigateEvent-classic-history-API-state">classic history API state</span> is
null;</p></li>

<li><p><var>destination</var>'s <span data-x="concept-NavigationDestination-sameDocument">is
same document</span> is true;</p></li>

Expand All @@ -94947,6 +94961,11 @@ interface <dfn interface>NavigationDestination</dfn> {
<p>then initialize <var>event</var>'s <code
data-x="dom-NavigateEvent-hashChange">hashChange</code> to true. Otherwise, initialize it to
false.</p>

<p class="note">The first condition here means that <code
data-x="dom-NavigateEvent-hashChange">hashChange</code> will be true for <span
data-x="navigate-fragid">fragment navigations</span>, but false for cases like <code
data-x="">history.pushState(undefined, "", "#fragment")</code>.</p>
</li>

<li><p>If <var>userInvolvement</var> is not "<code data-x="uni-none">none</code>", then
Expand Down Expand Up @@ -99115,6 +99134,14 @@ location.href = '#foo';</code></pre>
https://github.com/whatwg/html/issues/1213
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=1946 to 1955 -->

<li><p>Set <var>container</var> to <var>navigable</var>'s <span
data-x="nav-container">container</span>.</p></li>

<li><p>If <var>container</var> is an <code>iframe</code> element and <span>will lazy load
element steps</span> given <var>container</var> returns true, then <span>stop
intersection-observing a lazy loading element</span> <var>container</var> and set
<var>container</var>'s <span>lazy load resumption steps</span> to null.</p></li>

<li id="navigate-convert-to-replace">
<p>If <var>historyHandling</var> is "<code data-x="NavigationHistoryBehavior-auto">auto</code>",
then:</p>
Expand Down Expand Up @@ -109430,6 +109457,26 @@ dictionary <dfn dictionary>PromiseRejectionEventInit</dfn> : <span>EventInit</sp
</li>
</ol>

<h5 id="hostsystemutcepochnanoseconds"><dfn>HostSystemUTCEpochNanoseconds</dfn>(<var>global</var>)</h5>

<p>The Temporal proposal contains an <span>implementation-defined</span> <span
data-x="js-HostSystemUTCEpochNanoseconds">HostSystemUTCEpochNanoseconds</span> abstract operation.
User agents must use the following implementation: <ref>JSTEMPORAL</ref></p>

<ol>
<li><p>Let <var>settingsObject</var> be <var>global</var>'s <span>relevant settings
object</span>.</p></li>

<li><p>Let <var>time</var> be <var>settingsObject</var>'s <span>current wall
time</span>.</p></li>

<li><p>Let <var>ns</var> be the number of nanoseconds from the <span>Unix epoch</span> to
<var>time</var>, rounded to the nearest integer.</p></li>

<li><p>Return the result of <span>clamping</span> <var>ns</var> between
<span>nsMinInstant</span> and <span>nsMaxInstant</span>.</p></li>
</ol>

<h5 id="integration-with-javascript-jobs">Job-related host hooks</h5>

<p>The JavaScript specification defines Jobs to be scheduled and run later by the host, as well as
Expand Down Expand Up @@ -141892,6 +141939,12 @@ interface <dfn interface>External</dfn> {
<td> <code data-x="event-auxclick">auxclick</code> event handler
<td> <span data-x="event handler content attributes">Event handler content attribute</span>

<tr>
<th id="ix-handler-onbeforeinput"> <code data-x="">onbeforeinput</code>
<td> <span data-x="handler-onbeforeinput">HTML elements</span>
<td> <code data-x="event-beforeinput">beforeinput</code> event handler
<td> <span data-x="event handler content attributes">Event handler content attribute</span>

<tr>
<th id="ix-handler-onbeforematch"> <code data-x="">onbeforematch</code>
<td> <span data-x="handler-onbeforematch">HTML elements</span>
Expand Down Expand Up @@ -143646,6 +143699,9 @@ INSERT INTERFACES HERE
<dt id="refsJSON">[JSON]</dt>
<dd><cite><a href="https://www.rfc-editor.org/rfc/rfc8259">The JavaScript Object Notation (JSON) Data Interchange Format</a></cite>, T. Bray. IETF.</dd>

<dt id="refsJSTEMPORAL">[JSTEMPORAL]</dt>
<dd><cite><a href="https://tc39.es/proposal-temporal/">Temporal</a></cite>. Ecma International.</dd>

<dt id="refsLONGTASKS">[LONGTASKS]</dt>
<dd><cite><a href="https://w3c.github.io/longtasks/">Long Tasks</a></cite>, D. Denicola, I. Grigorik, S. Panicker. W3C.</dd>

Expand Down

0 comments on commit 6bff4c8

Please sign in to comment.