@@ -235,38 +235,36 @@ if all of the following are true, and false otherwise:
235
235
</ul>
236
236
237
237
<div algorithm>
238
- <p> The <dfn method for=Element><code>requestFullscreen(<var>options</var>)</code></dfn> method,
239
- when invoked, must run these steps :
238
+ <p> The <dfn method for=Element><code>requestFullscreen(<var>options</var>)</code></dfn> method steps
239
+ are :
240
240
241
241
<ol>
242
- <li><p> Let <var> pending</var> be the <a>context object</a> .
243
-
244
- <li><p> Let <var> pendingDoc</var> be <var> pending</var> 's <a>node document</a> .
242
+ <li><p> Let <var> pendingDoc</var> be <a>this</a> 's <a>node document</a> .
245
243
246
244
<li><p> Let <var> promise</var> be a new promise.
247
245
248
246
<li><p> If <var> pendingDoc</var> is not <a>fully active</a> , then reject <var> promise</var> with a
249
- <code> TypeError</code> exception and return <var> promise</var> .
247
+ {{ TypeError}} exception and return <var> promise</var> .
250
248
251
249
<li><p> Let <var> error</var> be false.
252
250
253
251
<li>
254
252
<p> If any of the following conditions are false, then set <var> error</var> to true:
255
253
256
254
<ul>
257
- <li><p><var> pending </var > 's <a for=Element>namespace</a> is the <a>HTML namespace</a> or
258
- <var> pending </var > is an
255
+ <li><p> <a>This</a > 's <a for=Element>namespace</a> is the <a>HTML namespace</a> or
256
+ <a>this</a > is an
259
257
<a href=https://www.w3.org/TR/SVG11/struct.html#SVGElement>SVG <code>svg</code></a> or
260
258
<a href=https://www.w3.org/Math/draft-spec/chapter2.html#interf.toplevel>MathML <code>math</code></a>
261
259
element. [[!SVG]] [[!MATHML]]
262
260
263
- <li><p><var> pending </var > is not a <{dialog}> element.
261
+ <li><p> <a>This</a > is not a <{dialog}> element.
264
262
265
- <li><p> The <a>fullscreen element ready check</a> for <var> pending </var > returns true.
263
+ <li><p> The <a>fullscreen element ready check</a> for <a>this</a > returns true.
266
264
267
265
<li><p> <a>Fullscreen is supported</a> .
268
266
269
- <li><p><var> pending </var > 's <a>relevant global object</a> has <a>transient activation</a> or the
267
+ <li><p> <a>This</a > 's <a>relevant global object</a> has <a>transient activation</a> or the
270
268
algorithm is <a>triggered by a user generated orientation change</a> .
271
269
</ul>
272
270
@@ -307,25 +305,25 @@ when invoked, must run these steps:
307
305
<p> If any of the following conditions are false, then set <var> error</var> to true:
308
306
309
307
<ul>
310
- <li><p><var> pending </var > 's <a>node document</a> is <var> pendingDoc</var> .
308
+ <li><p> <a>This</a > 's <a>node document</a> is <var> pendingDoc</var> .
311
309
312
- <li><p> The <a>fullscreen element ready check</a> for <var> pending </var > returns true.
310
+ <li><p> The <a>fullscreen element ready check</a> for <a>this</a > returns true.
313
311
<!-- cross-process; check is only needed on pending as it is recursive already -->
314
312
</ul>
315
313
316
314
<li>
317
315
<p> If <var> error</var> is true:
318
316
319
317
<ol>
320
- <li><p> <a for=set>Append</a> (<code> fullscreenerror</code> , <var> pending </var > ) to
318
+ <li><p> <a for=set>Append</a> (<code> fullscreenerror</code> , <a>this</a > ) to
321
319
<var> pendingDoc</var> 's <a>list of pending fullscreen events</a> .
322
320
323
- <li><p> Reject <var> promise</var> with a <code> TypeError</code> exception and terminate these
321
+ <li><p> Reject <var> promise</var> with a {{ TypeError}} exception and terminate these
324
322
steps.
325
323
</ol>
326
324
327
325
<li><p> Let <var> fullscreenElements</var> be an <a>ordered set</a> initially consisting of
328
- <var> pending </var > .
326
+ <a>this</a > .
329
327
330
328
<li><p> <a>While</a> the last element in <var> fullscreenElements</var> is in a
331
329
<a>nested browsing context</a> : <a for=set>append</a> its <a>browsing context container</a> to
@@ -343,7 +341,7 @@ when invoked, must run these steps:
343
341
344
342
<p class=note> No need to notify observers when nothing has changed.
345
343
346
- <li><p> If <var> element</var> is <var> pending </var > and <var> pending </var > is an <{iframe}>
344
+ <li><p> If <var> element</var> is <a>this</a > and <a>this</a > is an <{iframe}>
347
345
<a>element</a> , then set <var> element</var> 's <a>iframe fullscreen flag</a> .
348
346
349
347
<li><p> <a lt="fullscreen an element">Fullscreen <var>element</var></a> within <var> doc</var> .
@@ -362,30 +360,30 @@ when invoked, must run these steps:
362
360
exercise to the reader. Input welcome on potential improvements.
363
361
</div>
364
362
365
- <p> The <dfn attribute for=Document><code>fullscreenEnabled</code></dfn> attribute's getter must
366
- return true if the <a>context object </a> is <a>allowed to use</a> the "<code><a
363
+ <p> The <dfn attribute for=Document><code>fullscreenEnabled</code></dfn> getter steps are to return
364
+ true if <a>this </a> is <a>allowed to use</a> the "<code><a
367
365
data-lt="fullscreen-feature"> fullscreen</a></code> " feature and <a>fullscreen is supported</a> , and
368
366
false otherwise.
369
367
370
- <p> The <dfn attribute for=Document><code>fullscreen</code></dfn> attribute's getter must return
371
- false if <a>context object </a> 's <a>fullscreen element</a> is null, and true otherwise.
368
+ <p> The <dfn attribute for=Document><code>fullscreen</code></dfn> getter steps are to return false if
369
+ <a>this </a> 's <a>fullscreen element</a> is null, and true otherwise.
372
370
373
371
<p class=note> Use the {{DocumentOrShadowRoot/fullscreenElement}} attribute instead.
374
372
375
373
<div algorithm>
376
374
<p> The
377
375
<dfn attribute for=DocumentOrShadowRoot id=dom-document-fullscreenelement><code>fullscreenElement</code></dfn>
378
- attribute's getter must run these steps:
376
+ getter steps are :
379
377
380
378
<ol>
381
- <li><p> If the <a>context object </a> is a <a for=/>shadow root</a> and its
382
- <a for=DocumentFragment>host</a> is not <a> connected</a> , then return null.</li>
379
+ <li><p> If <a>this </a> is a <a for=/>shadow root</a> and its <a for=DocumentFragment>host</a> is not
380
+ <a> connected</a> , then return null.
383
381
384
382
<li><p> Let <var> candidate</var> be the result of <a>retargeting</a> <a>fullscreen element</a>
385
- against the <a>context object </a> .
383
+ against <a>this </a> .
386
384
387
- <li><p> If <var> candidate</var> and the <a>context object </a> are in the same <a>tree</a> , then
388
- return <var> candidate</var> .
385
+ <li><p> If <var> candidate</var> and <a>this </a> are in the same <a>tree</a> , then return
386
+ <var> candidate</var> .
389
387
390
388
<li><p> Return null.
391
389
</ol>
@@ -438,7 +436,7 @@ could be an open <{dialog}> element.
438
436
<li><p> Let <var> promise</var> be a new promise.
439
437
440
438
<li><p> If <var> doc</var> is not <a>fully active</a> or <var> doc</var> 's <a>fullscreen element</a>
441
- is null, then reject <var> promise</var> with a <code> TypeError</code> exception and return
439
+ is null, then reject <var> promise</var> with a {{ TypeError}} exception and return
442
440
<var> promise</var> .
443
441
444
442
<li><p> Let <var> resize</var> be false.
@@ -512,8 +510,8 @@ could be an open <{dialog}> element.
512
510
</ol>
513
511
</div>
514
512
515
- <p> The <dfn method for=Document><code>exitFullscreen()</code></dfn> method, when invoked, must
516
- return the result of running <a>exit fullscreen</a> on the <a>context object </a> .
513
+ <p> The <dfn method for=Document><code>exitFullscreen()</code></dfn> method steps are to return the
514
+ result of running <a>exit fullscreen</a> on <a>this </a> .
517
515
518
516
<hr>
519
517
0 commit comments