Skip to content

Commit dc70a78

Browse files
committed
Address format review changes
1 parent 35dd322 commit dc70a78

File tree

1 file changed

+54
-64
lines changed

1 file changed

+54
-64
lines changed

source

Lines changed: 54 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -3233,7 +3233,7 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
32333233
<li>The <dfn data-x-href="https://dom.spec.whatwg.org/#concept-tree">tree</dfn>, <dfn data-x-href="https://dom.spec.whatwg.org/#concept-shadow-tree">shadow tree</dfn>, and <dfn data-x-href="https://dom.spec.whatwg.org/#concept-node-tree">node tree</dfn> concepts</li>
32343234
<li>The <dfn data-x-href="https://dom.spec.whatwg.org/#concept-tree-order">tree order</dfn> and <dfn data-x-href="https://dom.spec.whatwg.org/#concept-shadow-including-tree-order">shadow-including tree order</dfn> concepts</li>
32353235
<li>The <dfn data-x-href="https://dom.spec.whatwg.org/#concept-element" data-x="concept-element">element</dfn> concept</li>
3236-
<li>The <dfn data-x-href="https://dom.spec.whatwg.org/#concept-tree-child" data-x="concept-tree-child">child</dfn> concept</li>
3236+
<li>The <dfn data-x-href="https://dom.spec.whatwg.org/#concept-tree-child" data-x="concept-tree-child">child</dfn> and <dfn data-x-href="https://dom.spec.whatwg.org/#concept-tree-child" data-x="concept-tree-last-child">last child</dfn> concepts</li>
32373237
<li>The <dfn data-x-href="https://dom.spec.whatwg.org/#concept-tree-root">root</dfn> and <dfn data-x-href="https://dom.spec.whatwg.org/#concept-shadow-including-root">shadow-including root</dfn> concepts</li>
32383238
<li>The <dfn data-x-href="https://dom.spec.whatwg.org/#concept-tree-inclusive-ancestor">inclusive ancestor</dfn>,
32393239
<dfn data-x-href="https://dom.spec.whatwg.org/#concept-tree-descendant">descendant</dfn>,
@@ -79852,7 +79852,7 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {
7985279852
<p>The order within a <span>tabindex-ordered focus navigation scope</span> is determined by each
7985379853
element's <span>tabindex value</span> and, for <span>reading-flow focus navigation scope</span>,
7985479854
by the special rules provided by the <span>sequential navigation search algorithm</span>. The
79855-
<span>tabindex value</span> should take precedence over <span>reading flow</span>.</p>
79855+
<span>tabindex value</span> takes precedence over <span>reading flow</span>.</p>
7985679856

7985779857
<p class="note">The rules there do not give a precise ordering, as they are composed mostly of
7985879858
"<!--non-normative-->should" statements and relative orderings.</p>
@@ -80783,21 +80783,19 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {
8078380783
focusable</span>.</p>
8078480784
</li>
8078580785

80786-
<li>
80787-
<p>If <var>candidate</var> is a <span data-x="reading-flow-item">reading flow item</span> or
80788-
null, <var>direction</var> is <i>forward</i>, and <var>starting point</var> is in a
80789-
<span>reading-flow focus navigation scope</span> <var>scope</var>, then let <var>new
80790-
candidate</var> be the result of running the <span>reading flow sequential navigation search
80791-
algorithm</span> with <var>candidate</var> as the first argument, <var>direction</var> as the
80792-
second, and <var>starting point</var>'s focus navigation <var>scope</var> as the third.</p>
80786+
<li><p>If <var>candidate</var> is a <span data-x="reading-flow-item">reading flow item</span> or
80787+
null, <var>direction</var> is <i>forward</i>, and <var>starting point</var> is in a
80788+
<span>reading-flow focus navigation scope</span> <var>scope</var>, then let <var>new
80789+
candidate</var> be the result of running the <span>reading flow sequential navigation search
80790+
algorithm</span> given <var>candidate</var>, <var>direction</var>, and <var>starting
80791+
point</var>'s focus navigation <var>scope</var>.</p></li>
8079380792

80794-
<p>If <var>starting point</var> is a <span data-x="reading-flow-item">reading flow item</span>,
80795-
<var>direction</var> is <i>backward</i>, and <var>starting point</var> is in a
80796-
<span>reading-flow focus navigation scope</span> <var>scope</var>, then let <var>new
80797-
candidate</var> be the result of running the <span>reading flow sequential navigation search
80798-
algorithm</span> with <var>starting point</var> as the first argument, <var>direction</var> as
80799-
the second, and <var>starting point</var>'s focus navigation <var>scope</var> as the third.</p>
80800-
</li>
80793+
<li><p>If <var>starting point</var> is a <span data-x="reading-flow-item">reading flow
80794+
item</span>, <var>direction</var> is <i>backward</i>, and <var>starting point</var> is in a
80795+
<span>reading-flow focus navigation scope</span> <var>scope</var>, then let <var>new
80796+
candidate</var> be the result of running the <span>reading flow sequential navigation search
80797+
algorithm</span> given <var>starting point</var>, <var>direction</var>, and <var>starting
80798+
point</var>'s focus navigation <var>scope</var>.</p></li>
8080180799

8080280800
<li>
8080380801
<p>If <var>candidate</var> is a <span>navigable container</span> with a non-null <span>content
@@ -80828,57 +80826,49 @@ dictionary <dfn dictionary>ToggleEventInit</dfn> : <span>EventInit</span> {
8082880826
area</span>-or-null.</p>
8082980827

8083080828
<ol>
80831-
<li>
80832-
Let <var>reading flow items</var> be the list of <span data-x="reading-flow-item">reading flow
80833-
items</span> owned by <var>scope</var>, sorted in <span>reading flow</span>.
80834-
</li>
80835-
<li>
80836-
If <var>reading flow items</var> is empty, return null.
80837-
</li>
80838-
<li>If <var>direction</var> is <i>forward</i>, then:
80839-
<ol>
80840-
<li>
80841-
If <var>current</var> is the <span data-x="reading-flow-item">reading flow item</span> from
80842-
<var>reading flow items</var> that comes first in <span>tree order</span>, return first
80843-
item in <var>reading flow items</var>.
80844-
</li>
80845-
<li>
80846-
If <var>current</var> is null, let <var>previous</var> be the <span
80829+
<li><p> Let <var>reading flow items</var> be the list of <span
80830+
data-x="reading-flow-item">reading flow items</span> owned by <var>scope</var>, sorted in
80831+
<span>reading flow</span>.</p></li>
80832+
80833+
<li><p>If <var>reading flow items</var> is empty, then return null.</p></li>
80834+
80835+
<li>
80836+
<p>If <var>direction</var> is <i>forward</i>, then:</p>
80837+
<ol>
80838+
<li><p>If <var>current</var> is the <span data-x="reading-flow-item">reading flow
80839+
item</span> from <var>reading flow items</var> that comes first in <span>tree order</span>,
80840+
return first item in <var>reading flow items</var>.</p></li>
80841+
80842+
<li><p>If <var>current</var> is null, let <var>previous</var> be the <span
8084780843
data-x="reading-flow-item">reading flow item</span> from <var>reading flow items</var> that
80848-
comes last in <span>tree order</span>.
80849-
</li>
80850-
<li>
80851-
Otherwise, let <var>previous</var> be the <span data-x="reading-flow-item">reading flow
80852-
item</span> that comes before <var>current</var> in <span>tree order</span>.
80853-
</li>
80854-
<li>
80855-
If <var>previous</var> is the last item in <var>reading flow items</var>, return null.
80856-
</li>
80857-
<li>
80858-
Otherwise, return the <span data-x="reading-flow-item">reading flow item</span> that comes
80859-
after <var>previous</var> in <var>reading flow items</var>.
80860-
</li>
80861-
</ol>
80844+
comes last in <span>tree order</span>.</p></li>
80845+
80846+
<li><p>Otherwise, let <var>previous</var> be the <span data-x="reading-flow-item">reading
80847+
flow item</span> that comes before <var>current</var> in <span>tree order</span>.</p></li>
80848+
80849+
<li><p>If <var>previous</var> is the last item in <var>reading flow items</var>, then return
80850+
null. </p></li>
80851+
80852+
<li><p>Otherwise, return the <span data-x="reading-flow-item">reading flow item</span> that
80853+
comes after <var>previous</var> in <var>reading flow items</var>.</p></li>
80854+
</ol>
8086280855
</li>
80863-
<li>Otherwise:
80864-
<ol>
80865-
<li>
80866-
Let <var>previous</var> be the item that comes before <var>current</var> in <var>reading
80867-
flow items</var>.
80868-
</li>
80869-
<li>
80870-
If <var>previous</var> is null, return null.
80871-
</li>
80872-
<li>
80873-
Otherwise, if <var>previous</var> does not have any <span>descendant</span>, return
80874-
<var>previous</var>.
80875-
</li>
80876-
<li>
80877-
Otherwise, return the last <span>descendant</span> of <var>previous</var>.
80878-
</li>
80879-
</ol>
80856+
<li>
80857+
<p>Otherwise:</p>
80858+
<ol>
80859+
<li><p>Let <var>previous</var> be the <span data-x="list item">item</span> preceding
80860+
<var>current</var> in <var>reading flow items</var> if one exists, and null
80861+
otherwise.</p></li>
8088080862

80881-
</li>
80863+
<li><p>If <var>previous</var> is null, then return null.</p></li>
80864+
80865+
<li><p>Otherwise, if <var>previous</var> does not have a <span
80866+
data-x="concept-tree-child">child</span>, return <var>previous</var>.</p></li>
80867+
80868+
<li><p>Otherwise, return the <span data-x="concept-tree-last-child">last child</span> of
80869+
<var>previous</var>.</p></li>
80870+
</ol>
80871+
</li>
8088280872
</ol>
8088380873

8088480874
</div>

0 commit comments

Comments
 (0)