Skip to content

Commit d194702

Browse files
author
Jihye Hong
committed
[css-nav-1] Fix errors from HTML validator
1 parent ad69c4d commit d194702

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

css-nav-1/Overview.bs

+7-11
Original file line numberDiff line numberDiff line change
@@ -1024,10 +1024,10 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
10241024
set <var>eventTarget</var> be <a>the body element</a> if it is not <code>null</code>
10251025
or to the <a>document element</a> otherwise.
10261026
4. <ul>
1027-
<span class=cssapi><li>If <var>eventTarget</var> is <a>scroll container</a>
1027+
<li class=cssapi>If <var>eventTarget</var> is <a>scroll container</a>
10281028
and the computed value of the 'spatial-navigation-action' property on <var>eventTarget</var> is ''spatial-navigation-action/scroll''
10291029
and <var>eventTarget</var> [=can be manually scrolled=],
1030-
then [=directionally scroll the element=] <var>eventTarget</var> and return.</li></span>
1030+
then [=directionally scroll the element=] <var>eventTarget</var> and return.</li>
10311031
<li><span class=cssapi>Else,</span> if <var>eventTarget</var> is either a <a>scroll container</a> or the <a>document</a>
10321032
1. Let <var>candidates</var> be the result of <a>finding focusable areas</a>
10331033
within <var>eventTarget</var>
@@ -1037,16 +1037,14 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
10371037
</span>
10381038
2.
10391039
<ul>
1040-
<span class=cssapi><li>If
1040+
<li class=cssapi>If
10411041
the computed value of the 'spatial-navigation-action' property on <var>eventTarget</var> is not ''spatial-navigation-action/focus''
10421042
and <var>eventTarget</var> <a>can be manually scrolled</a>,
1043-
then <a>directionally scroll the element</a> <var>eventTarget</var> in <var>direction</var> and return.</li></span>
1043+
then <a>directionally scroll the element</a> <var>eventTarget</var> in <var>direction</var> and return.</li>
10441044
<li><span class=cssapi>Else </span>if <var>candidates</var> contains at least 1 item:
10451045
1. Let <var>bestCandidate</var> be the result of <a>selecting the best candidate</a>
10461046
within <var>candidates</var> in <var>direction</var> starting from <var>searchOrigin</var>
1047-
<p class=api>
10481047
2. <a>Dispatches navbeforefocus event</a> at <var>eventTarget</var> with <var>direction</var> and <var>bestCandidate</var>.
1049-
</p>
10501048
3. Run the <a>focusing steps</a> for <var>bestCandidate</var> and return
10511049
</li>
10521050
<li>Else, fall back to the next step.</li>
@@ -1064,12 +1062,11 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
10641062
excluding <var>eventTarget</var>
10651063
</span>
10661064
7. If <var>candidates</var> is empty:
1067-
<ul>
1068-
<span class=cssapi><li>If the computed value of the 'spatial-navigation-action' property on <var>container</var> is not ''spatial-navigation-action/focus''
1065+
<li class=cssapi>If the computed value of the 'spatial-navigation-action' property on <var>container</var> is not ''spatial-navigation-action/focus''
10691066
and <var>container</var> is a <a>scroll container</a> that <a>can be manually scrolled</a>,
10701067
<a>directionally scroll the element</a> <var>container</var> in <var>direction</var> and return.
1071-
</li></span>
1072-
<span class=cssapi><li>Else,</li></span>
1068+
</li>
1069+
<li class=cssapi>Else,</li>
10731070
1. <a>Dispatches navnotarget event</a> at <var>eventTarget</var> with <var>direction</var> and <var>container</var>.
10741071
2.
10751072
* If <var>container</var> is the <a>document element</a> of the <a>top-level browsing context</a>,
@@ -1087,7 +1084,6 @@ To run the <dfn>spatial navigation steps</dfn> in <var>direction</var>, do the f
10871084
within <var>candidates</var> in <var>direction</var> starting from <var>eventTarget</var>.
10881085
9. <a>Dispatches navbeforefocus event</a> at <var>eventTarget</var> with <var>direction</var> and <var>bestCandidate</var>.
10891086
10. Run the <a>focusing steps</a> for <var>bestCandidate</var> and return.
1090-
10911087
</div>
10921088

10931089
<h3 id=heuristics>

0 commit comments

Comments
 (0)