@@ -27,6 +27,7 @@ spec: html; urlPrefix: https://html.spec.whatwg.org/multipage/;
27
27
type: dfn;
28
28
text: actually disabled; url: #concept-element-disabled
29
29
text: being rendered
30
+ text: browsing context
30
31
text: control group
31
32
text: currently focused area of a top-level browsing context
32
33
text: DOM anchor
@@ -644,11 +645,11 @@ and the result will be <code>null</code>.</em>
644
645
const outerBtn = container.spatialNavigationSearch('down' );
645
646
</code></pre>
646
647
647
- <code> innerBtn</code> is assigned to the element whose {{Element/id}} matches with <code> ' button1' </code>
648
+ <code> innerBtn</code> is assigned to the element whose {{Element/id}} matches with <code> button1</code>
648
649
because the {{SpatialNavigationSearchOptions/inside}} attribute is <code> true</code> .
649
650
But if the author doesn't specify {{SpatialNavigationSearchOptions/inside}} attribute,
650
651
<code> false</code> is given to it by default.
651
- Therefore <code> outerBtn</code> is assigned to the element with {{Element/id}} <code> ' button2' </code>
652
+ Therefore <code> outerBtn</code> is assigned to the element with {{Element/id}} <code> button2</code>
652
653
which is outside of <code> container</code> .
653
654
</div>
654
655
@@ -1217,7 +1218,7 @@ run the following steps:
1217
1218
* left edge is right of the right edge of <var> searchOrigin</var> 's <a>boundary box</a> if <var> dir</var> is {{SpatialNavigationDirection/right}}
1218
1219
* the item partially overlaps with <var> searchOrigin</var> and
1219
1220
its two edges which are orthogonal to <var> dir</var> should be on the navigation direction of the respective ones of <var> searchOrigin</var> .
1220
- 2. For each <var> candidate</var> in <var> candidates</var> ,
1221
+ 2. For each <var ignore="" > candidate</var> in <var> candidates</var> ,
1221
1222
[=find the shortest distance=] between <var> searchOrigin</var> .
1222
1223
3. Return the item of the <var> candidates</var> set that has the smallest distance.
1223
1224
If several have the same distance,
0 commit comments