@@ -235,38 +235,36 @@ if all of the following are true, and false otherwise:
235235</ul>
236236
237237<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 :
240240
241241<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> .
245243
246244 <li><p> Let <var> promise</var> be a new promise.
247245
248246 <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> .
250248
251249 <li><p> Let <var> error</var> be false.
252250
253251 <li>
254252 <p> If any of the following conditions are false, then set <var> error</var> to true:
255253
256254 <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
259257 <a href=https://www.w3.org/TR/SVG11/struct.html#SVGElement>SVG <code>svg</code></a> or
260258 <a href=https://www.w3.org/Math/draft-spec/chapter2.html#interf.toplevel>MathML <code>math</code></a>
261259 element. [[!SVG]] [[!MATHML]]
262260
263- <li><p><var> pending </var > is not a <{dialog}> element.
261+ <li><p> <a>This</a > is not a <{dialog}> element.
264262
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.
266264
267265 <li><p> <a>Fullscreen is supported</a> .
268266
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
270268 algorithm is <a>triggered by a user generated orientation change</a> .
271269 </ul>
272270
@@ -307,25 +305,25 @@ when invoked, must run these steps:
307305 <p> If any of the following conditions are false, then set <var> error</var> to true:
308306
309307 <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> .
311309
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.
313311 <!-- cross-process; check is only needed on pending as it is recursive already -->
314312 </ul>
315313
316314 <li>
317315 <p> If <var> error</var> is true:
318316
319317 <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
321319 <var> pendingDoc</var> 's <a>list of pending fullscreen events</a> .
322320
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
324322 steps.
325323 </ol>
326324
327325 <li><p> Let <var> fullscreenElements</var> be an <a>ordered set</a> initially consisting of
328- <var> pending </var > .
326+ <a>this</a > .
329327
330328 <li><p> <a>While</a> the last element in <var> fullscreenElements</var> is in a
331329 <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:
343341
344342 <p class=note> No need to notify observers when nothing has changed.
345343
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}>
347345 <a>element</a> , then set <var> element</var> 's <a>iframe fullscreen flag</a> .
348346
349347 <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:
362360exercise to the reader. Input welcome on potential improvements.
363361</div>
364362
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
367365data-lt="fullscreen-feature"> fullscreen</a></code> " feature and <a>fullscreen is supported</a> , and
368366false otherwise.
369367
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.
372370
373371<p class=note> Use the {{DocumentOrShadowRoot/fullscreenElement}} attribute instead.
374372
375373<div algorithm>
376374<p> The
377375<dfn attribute for=DocumentOrShadowRoot id=dom-document-fullscreenelement><code>fullscreenElement</code></dfn>
378- attribute's getter must run these steps:
376+ getter steps are :
379377
380378<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.
383381
384382 <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> .
386384
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> .
389387
390388 <li><p> Return null.
391389</ol>
@@ -438,7 +436,7 @@ could be an open <{dialog}> element.
438436 <li><p> Let <var> promise</var> be a new promise.
439437
440438 <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
442440 <var> promise</var> .
443441
444442 <li><p> Let <var> resize</var> be false.
@@ -512,8 +510,8 @@ could be an open <{dialog}> element.
512510</ol>
513511</div>
514512
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> .
517515
518516<hr>
519517
0 commit comments