Skip to content

Commit cbdc4f7

Browse files
committed
In requestFullscreen(), handle the pending element moving
Fixes #33. Drive-by: capitalization in lt attributes to match dfn.
1 parent d1d1b4a commit cbdc4f7

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

fullscreen.bs

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ its <a>node document</a>'s <a>top layer</a>.
9090
<ol>
9191
<li><p>If <var>document</var>'s <a>fullscreen element</a> is null, terminate these steps.
9292

93-
<li><p><a lt="Unfullscreen an element">Unfullscreen elements</a> whose <a>fullscreen flag</a> is
93+
<li><p><a lt="unfullscreen an element">Unfullscreen elements</a> whose <a>fullscreen flag</a> is
9494
set, within <var>document</var>'s <a>top layer</a>, except for <var>document</var>'s
9595
<a>fullscreen element</a>.
9696

@@ -231,11 +231,19 @@ these steps:
231231
<p>As part of the next <a>animation frame task</a>, run these substeps:
232232

233233
<ol>
234-
<li><p>If either <var>error</var> is true or the <a>fullscreen element ready check</a> for
235-
<var>pending</var> returns false, <a>fire an event</a> named <code>fullscreenerror</code> on
236-
<var>pending</var>'s <a>node document</a>, reject <var>promise</var> with a
237-
<code>TypeError</code> exception, and terminate these steps.
238-
<!-- cross-process; check is only needed on pending as it is recursive already -->
234+
<li>
235+
<p>If any of the following conditions are false, then set <var>error</var> to true:
236+
237+
<ul>
238+
<li><p><var>pending</var>'s <a>node document</a> is <var>pendingDoc</var>.
239+
240+
<li><p>The <a>fullscreen element ready check</a> for <var>pending</var> returns true.
241+
<!-- cross-process; check is only needed on pending as it is recursive already -->
242+
</ul>
243+
244+
<li><p>If <var>error</var> is true, <a>fire an event</a> named <code>fullscreenerror</code> on
245+
<var>pendingDoc</var>, reject <var>promise</var> with a <code>TypeError</code> exception, and
246+
terminate these steps.
239247

240248
<li><p>Let <var>fullscreenElements</var> be an <a>ordered set</a> initially consisting of
241249
<var>pending</var>.
@@ -263,7 +271,7 @@ these steps:
263271
<li><p>If <var>element</var> is <var>pending</var> and <var>pending</var> is an <{iframe}>
264272
<a>element</a>, then set <var>element</var>'s <a>iframe fullscreen flag</a>.
265273

266-
<li><p><a lt="Fullscreen an element">Fullscreen <var>element</var></a> within <var>doc</var>.
274+
<li><p><a lt="fullscreen an element">Fullscreen <var>element</var></a> within <var>doc</var>.
267275
</ol>
268276

269277
<li><p><a>For each</a> <var>doc</var> in <var>eventDocs</var>, <a>fire an event</a>

0 commit comments

Comments
 (0)