@@ -219,7 +219,7 @@ When a user agent is to <dfn>set up a worklet environment settings object</dfn>,
219
219
:: Return |workletGlobalScope|.
220
220
221
221
: The <a>responsible browsing context</a>
222
- :: Return |inheritedResponsibleBrowsingContext|.
222
+ :: Return |inheritedResponsibleBrowsingContext|.
223
223
224
224
: The <a>responsible event loop</a>
225
225
:: Return |workletEventLoop|.
@@ -371,27 +371,29 @@ Examples {#examples}
371
371
372
372
For these examples we'll use a fake worklet on window.
373
373
374
- <pre class='idl'>
375
- partial interface Window {
376
- [SameObject] readonly attribute Worklet fakeWorklet1;
377
- [SameObject] readonly attribute Worklet fakeWorklet2;
378
- };
379
- </pre>
380
-
381
- <pre class='idl'>
382
- callback Function = any (any... arguments);
383
-
384
- [Global=(Worklet,FakeWorklet),Exposed=FakeWorklet]
385
- interface FakeWorkletGlobalScope : WorkletGlobalScope {
386
- void registerAnArbitaryClass(DOMString type, Function classConstructor);
387
- };
388
- </pre>
389
-
390
- Each {{FakeWorkletGlobalScope}} has a map of the <dfn>registered class constructors map</dfn> .
391
-
392
- When the <dfn method for=FakeWorkletGlobalScope>
393
- registerAnArbitaryClass(|type|, |classConstructor|)</dfn> method is called, the user agent will add
394
- the |classConstructor| of |type| to the map of <a>registered class constructors map</a> .
374
+ <div class=example>
375
+ <pre class='idl'>
376
+ partial interface Window {
377
+ [SameObject] readonly attribute Worklet fakeWorklet1;
378
+ [SameObject] readonly attribute Worklet fakeWorklet2;
379
+ };
380
+ </pre>
381
+
382
+ <pre class='idl'>
383
+ callback Function = any (any... arguments);
384
+
385
+ [Global=(Worklet,FakeWorklet),Exposed=FakeWorklet]
386
+ interface FakeWorkletGlobalScope : WorkletGlobalScope {
387
+ void registerAnArbitaryClass(DOMString type, Function classConstructor);
388
+ };
389
+ </pre>
390
+
391
+ Each {{FakeWorkletGlobalScope}} has a map of the <dfn>registered class constructors map</dfn> .
392
+
393
+ When the <dfn method for=FakeWorkletGlobalScope>
394
+ registerAnArbitaryClass(|type|, |classConstructor|)</dfn> method is called, the user agent will add
395
+ the |classConstructor| of |type| to the map of <a>registered class constructors map</a> .
396
+ </div>
395
397
396
398
Loading scripts into a worklet. {#example-single}
397
399
-------------------------------------------------
0 commit comments