Skip to content

Commit

Permalink
Clean up recursion
Browse files Browse the repository at this point in the history
  • Loading branch information
domfarolino committed Sep 18, 2024
1 parent a049765 commit 8468c49
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -80287,7 +80287,7 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {

<li><p>Let <var>candidate</var> be the result of running the <span>sequential navigation search
algorithm</span> with <var>starting point</var>, <var>direction</var>, and <var>selection
mechanism</var> as the arguments.</p></li>
mechanism</var>.</p></li>

<li><p>If <var>candidate</var> is not null, then run the <span>focusing steps</span> for
<var>candidate</var> and return.</p></li>
Expand Down Expand Up @@ -80380,15 +80380,23 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {

<li>
<p>If <var>candidate</var> is a <span>navigable container</span> with a non-null <span>content
navigable</span>, then let <var>new candidate</var> be the result of running the
<span>sequential navigation search algorithm</span> with <var>candidate</var>'s <span>content
navigable</span> as the first argument, <var>direction</var> as the second, and
<i>sequential</i> <!-- shift-tab from the end in
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2855 --> as the third.</p>

<p>If <var>new candidate</var> is null, then let <var>starting point</var>
be <var>candidate</var>, and return to the top of this algorithm. Otherwise, let
<var>candidate</var> be <var>new candidate</var>.</p>
navigable</span>, then:</p>

<ol>
<li><p>Let <var>recursive candidate</var> be the result of running the <span>sequential
navigation search algorithm</span> with <var>candidate</var>'s <span>content navigable</span>,
<var>direction</var>, and "<code
data-x="selection-mechanism-sequential">sequential</code>".<!-- shift-tab from the end in
https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2855 --></p></li>

<li>
<p>If <var>recursive candidate</var> is null, then return the result of running the
<span>sequential navigation search algorithm</span> with <var>candidate</var>,
<var>direction</var>, and <var>selection mechanism</var>.</p>

<p>Otherwise, set <var>candidate</var> to <var>recursive candidate</var>.</p>
</li>
</ol>
</li>

<li><p>Return <var>candidate</var>.</p></li>
Expand Down

0 comments on commit 8468c49

Please sign in to comment.