You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>The <dfn>sequential navigation search algorithm</dfn> consists of the following steps. This
80393
-
algorithm takes three arguments: <var>starting point</var>, <var>direction</var>,
80394
-
and <var>selection mechanism</var>.</p>
80406
+
<p>The <dfn>sequential navigation search algorithm</dfn>, given a <span>focusable area</span>
80407
+
<var>starting point</var>, <span>sequential focus direction</span> <var>direction</var>, and
80408
+
<span>selection mechanism</span> <var>selection mechanism</var>, consists of the following steps.
80409
+
They return a <span>focusable area</span>-or-null.</p>
80395
80410
80396
80411
<ol>
80397
80412
<li>
80398
80413
<p>Pick the appropriate cell from the following table, and follow the instructions in that
80399
80414
cell.</p>
80400
80415
80401
-
<p>The appropriate cell is the one that is from the column whose header describes <var>direction</var> and from the first row whose header describes <var>starting point</var> and <var>selection mechanism</var>.</p>
80416
+
<p>The appropriate cell is the one that is from the column whose header describes
80417
+
<var>direction</var> and from the first row whose header describes <var>starting point</var> and
80418
+
<var>selection mechanism</var>.</p>
80402
80419
80403
80420
<table>
80404
80421
<thead>
80405
80422
<tr>
80406
80423
<th>
80407
-
<th><var>direction</var> is <i>forward</i>
80408
-
<th><var>direction</var> is <i>backward</i>
80424
+
<th><var>direction</var> is "<code data-x="sequential-focus-forward">forward</code>"
80425
+
<th><var>direction</var> is "<code data-x="sequential-focus-backward">backward</code>"
80409
80426
<tbody>
80410
80427
<tr>
80411
80428
<th><var>starting point</var> is a <span>navigable</span>
<td>Let <var>candidate</var> be the first <span>suitable sequentially focusable area</span>
80421
-
in the <span>home document</span> following <var>starting point</var>, if any; or else null
80455
+
after <var>starting point</var>, in <var>starting point</var>'s <code>Document</code>'s
80456
+
<span>sequential focus navigation order</span>, if any; or else null
80422
80457
<td>Let <var>candidate</var> be the last <span>suitable sequentially focusable area</span>
80423
-
in the <span>home document</span> preceding <var>starting point</var>, if any; or else null
80424
-
<tr>
80425
-
<th><var>selection mechanism</var> is <i>sequential</i>
80426
-
<td>Let <var>candidate</var> be the first <span>suitable sequentially focusable area</span> in the <span>home sequential focus navigation order</span> following <var>starting point</var>, if any; or else null
80427
-
<td>Let <var>candidate</var> be the last <span>suitable sequentially focusable area</span> in the <span>home sequential focus navigation order</span> preceding <var>starting point</var>, if any; or else null
80428
-
80458
+
before <var>starting point</var>, in <var>starting point</var>'s <code>Document</code>'s
80459
+
<span>sequential focus navigation order</span>, if any; or else null
80429
80460
</table>
80430
80461
80431
80462
<p>A <dfn>suitable sequentially focusable area</dfn> is a <span>focusable area</span> whose
80432
80463
<span>DOM anchor</span> is not <span>inert</span> and is <span>sequentially
80433
80464
focusable</span>.</p>
80465
+
</li>
80434
80466
80435
-
<p>The <dfn>home document</dfn> is the <code>Document</code> to which <var>starting point</var>
80436
-
belongs.</p>
80437
-
80438
-
<p>The <dfn>home sequential focus navigation order</dfn> is the <span>sequential focus
80439
-
navigation order</span> to which <var>starting point</var> belongs.</p>
80440
-
80441
-
<p class="note">The <span>home sequential focus navigation order</span> is the <span>home
80442
-
document</span>'s <span>sequential focus navigation order</span>, but is only used when the
80443
-
<var>starting point</var> is in that <span>sequential focus navigation order</span>
80444
-
(when it's not, <var>selection mechanism</var> will be <i>DOM</i>).</p>
80445
-
</li>
80446
-
80447
-
<li><p>If <var>candidate</var> is a <span data-x="reading-flow-item">reading flow item</span> or
80448
-
null, <var>direction</var> is <i>forward</i>, and <var>starting point</var> is in a
80449
-
<span>reading-flow focus navigation scope</span> <var>scope</var>, then let <var>new
80450
-
candidate</var> be the result of running the <span>reading flow sequential navigation search
80451
-
algorithm</span> given <var>candidate</var>, <var>direction</var>, and <var>starting
0 commit comments