|
7 | 7 | <link href="https://www.w3.org/StyleSheets/TR/2021/W3C-ED" rel="stylesheet">
|
8 | 8 | <meta content="Bikeshed version d765c696b, updated Fri Mar 8 15:58:52 2024 -0800" name="generator">
|
9 | 9 | <link href="https://www.w3.org/TR/design-principles/" rel="canonical">
|
10 |
| - <meta content="ff46d8fce26719269d9f5de143b6666f6d6c4868" name="revision"> |
| 10 | + <meta content="d893e1c5da763dca6a694d292d6ee7dd1320cb77" name="revision"> |
11 | 11 | <meta content="dark light" name="color-scheme">
|
12 | 12 | <link href="https://www.w3.org/StyleSheets/TR/2021/dark.css" media="(prefers-color-scheme: dark)" rel="stylesheet" type="text/css">
|
13 | 13 | <style>
|
|
701 | 701 | <div class="head">
|
702 | 702 | <p data-fill-with="logo"><a class="logo" href="https://www.w3.org/"> <img alt="W3C" height="48" src="https://www.w3.org/StyleSheets/TR/2021/logos/W3C" width="72"> </a> </p>
|
703 | 703 | <h1 class="p-name no-ref" id="title">Web Platform Design Principles</h1>
|
704 |
| - <p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-04-03">3 April 2024</time></p> |
| 704 | + <p id="w3c-state"><a href="https://www.w3.org/standards/types#ED">Editor’s Draft</a>, <time class="dt-updated" datetime="2024-04-05">5 April 2024</time></p> |
705 | 705 | <details open>
|
706 | 706 | <summary>More details about this document</summary>
|
707 | 707 | <div data-fill-with="spec-metadata">
|
@@ -2296,10 +2296,10 @@ <h3 class="heading settled" data-level="7.2" id="promises-and-events"><span clas
|
2296 | 2296 | it should dispatch them before the Promise resolves,
|
2297 | 2297 | rather than after.</p>
|
2298 | 2298 | <p>When a promise is resolved, a <a href="https://html.spec.whatwg.org/multipage/webappapis.html#microtask">microtask</a> is queued to run its reaction callbacks.
|
2299 |
| -Microtasks are processed when the JavaScript stack empties. <a href="https://dom.spec.whatwg.org/#dispatching-events">Dispatching an event</a> is synchronous, |
| 2299 | +Microtasks are processed when the JavaScript stack empties. <a href="https://dom.spec.whatwg.org/#dispatching-events">Dispatching an event</a> is synchronous, |
2300 | 2300 | which involves the JavaScript stack emptying between each listener.
|
2301 | 2301 | As a result, if a promise is resolved before dispatching a related event,
|
2302 |
| -any microtasks that are scheduled in reaction to a promise |
| 2302 | +any microtasks that are scheduled in reaction to a promise |
2303 | 2303 | will be invoked between the first and second listeners of the event.</p>
|
2304 | 2304 | <p>Dispatching the event first prevents this interleaving.
|
2305 | 2305 | All event listeners are then invoked before any promise reaction callbacks.</p>
|
@@ -3342,7 +3342,7 @@ <h3 class="heading settled" data-level="11.3" id="implementability"><span class=
|
3342 | 3342 | <a class="self-link" href="#eme-and-payment-request"></a>
|
3343 | 3343 | <p><a data-link-type="biblio" href="#biblio-encrypted-media" title="Encrypted Media Extensions">[ENCRYPTED-MEDIA]</a> and <a data-link-type="biblio" href="#biblio-payment-request" title="Payment Request API">[payment-request]</a> are both examples of specifications
|
3344 | 3344 | which minimize API differences by isolating a non-standard component
|
3345 |
| -(<a data-link-type="dfn">Content Decryption Modules</a> and <a data-link-type="dfn">payment methods</a>, respectively) |
| 3345 | +(<a href="https://w3c.github.io/encrypted-media/#cdm">Content Decryption Modules</a> and <a href="https://www.w3.org/TR/payment-method-manifest/">payment methods</a>, respectively) |
3346 | 3346 | from the rest of the (shared) API surface.</p>
|
3347 | 3347 | </div>
|
3348 | 3348 | <p>Groups sometimes choose to specify APIs
|
|
0 commit comments