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
80301
-
algorithm takes three arguments: <var>starting point</var>, <var>direction</var>,
80302
-
and <var>selection mechanism</var>.</p>
80314
+
<p>The <dfn>sequential navigation search algorithm</dfn>, given a <span>focusable area</span>
80315
+
<var>starting point</var>, <span>sequential focus direction</span> <var>direction</var>, and
80316
+
<span>selection mechanism</span> <var>selection mechanism</var>, consists of the following steps.
80317
+
They return a <span>focusable area</span>-or-null.</p>
80303
80318
80304
80319
<ol>
80305
80320
<li>
80306
80321
<p>Pick the appropriate cell from the following table, and follow the instructions in that
80307
80322
cell.</p>
80308
80323
80309
-
<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>
80324
+
<p>The appropriate cell is the one that is from the column whose header describes
80325
+
<var>direction</var> and from the first row whose header describes <var>starting point</var> and
80326
+
<var>selection mechanism</var>.</p>
80310
80327
80311
80328
<table>
80312
80329
<thead>
80313
80330
<tr>
80314
80331
<th>
80315
-
<th><var>direction</var> is <i>forward</i>
80316
-
<th><var>direction</var> is <i>backward</i>
80332
+
<th><var>direction</var> is "<code data-x="sequential-focus-forward">forward</code>"
80333
+
<th><var>direction</var> is "<code data-x="sequential-focus-backward">backward</code>"
80317
80334
<tbody>
80318
80335
<tr>
80319
80336
<th><var>starting point</var> is a <span>navigable</span>
<td>Let <var>candidate</var> be the first <span>suitable sequentially focusable area</span>
80329
-
in the <span>home document</span> following <var>starting point</var>, if any; or else null
80363
+
after <var>starting point</var>, in <var>starting point</var>'s <code>Document</code>'s
80364
+
<span>sequential focus navigation order</span>, if any; or else null
80330
80365
<td>Let <var>candidate</var> be the last <span>suitable sequentially focusable area</span>
80331
-
in the <span>home document</span> preceding <var>starting point</var>, if any; or else null
80332
-
<tr>
80333
-
<th><var>selection mechanism</var> is <i>sequential</i>
80334
-
<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
80335
-
<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
80336
-
80366
+
before <var>starting point</var>, in <var>starting point</var>'s <code>Document</code>'s
80367
+
<span>sequential focus navigation order</span>, if any; or else null
80337
80368
</table>
80338
80369
80339
80370
<p>A <dfn>suitable sequentially focusable area</dfn> is a <span>focusable area</span> whose
80340
80371
<span>DOM anchor</span> is not <span>inert</span> and is <span>sequentially
80341
80372
focusable</span>.</p>
80342
-
80343
-
<p>The <dfn>home document</dfn> is the <code>Document</code> to which <var>starting point</var>
80344
-
belongs.</p>
80345
-
80346
-
<p>The <dfn>home sequential focus navigation order</dfn> is the <span>sequential focus
80347
-
navigation order</span> to which <var>starting point</var> belongs.</p>
80348
-
80349
-
<p class="note">The <span>home sequential focus navigation order</span> is the <span>home
80350
-
document</span>'s <span>sequential focus navigation order</span>, but is only used when the
80351
-
<var>starting point</var> is in that <span>sequential focus navigation order</span>
80352
-
(when it's not, <var>selection mechanism</var> will be <i>DOM</i>).</p>
80353
80373
</li>
80354
80374
80355
80375
<li>
80356
80376
<p>If <var>candidate</var> is a <span>navigable container</span> with a non-null <span>content
80357
-
navigable</span>, then let <var>new candidate</var> be the result of running the
80358
-
<span>sequential navigation search algorithm</span> with <var>candidate</var>'s <span>content
80359
-
navigable</span> as the first argument, <var>direction</var> as the second, and
80360
-
<i>sequential</i> <!-- shift-tab from the end in
80361
-
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2855 --> as the third.</p>
80362
-
80363
-
<p>If <var>new candidate</var> is null, then let <var>starting point</var>
80364
-
be <var>candidate</var>, and return to the top of this algorithm. Otherwise, let
80365
-
<var>candidate</var> be <var>new candidate</var>.</p>
80377
+
navigable</span>, then:</p>
80378
+
80379
+
<ol>
80380
+
<li><p>Let <var>recursive candidate</var> be the result of running the <span>sequential
80381
+
navigation search algorithm</span> with <var>candidate</var>'s <span>content navigable</span>,
80382
+
<var>direction</var>, and "<code
80383
+
data-x="selection-mechanism-sequential">sequential</code>".<!-- shift-tab from the end in
0 commit comments