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
1. Let <var>direction</var> be the value of <var>dir</var>.
537
-
2. Let <var>container</var> be the the value of {{SpatialNavigationSearchOptions/container}} attribute of <var>options</var>
538
-
if it is not <code>null</code>, the element's nearest <a>spatial navigation container</a> ancestor otherwise.
539
-
3. Let <var>areas</var> be the value of {{SpatialNavigationSearchOptions/candidates}} attribute of <var>options</var>
540
-
if it is not <code>null</code>, result of <a>finding focusable areas</a> within <var>container</var> otherwise.
537
+
2. Let <var>container</var> be
538
+
* if the value of {{SpatialNavigationSearchOptions/container}} attribute of <var>options</var> is not null,
539
+
* itself, if it is <a>sptial navigation container</a>.
540
+
* its nearest <a>spatial navigation container</a> ancestor, otherwise.
541
+
* else the element's nearest <a>spatial navigation container</a> ancestor.
542
+
3. Let <var>areas</var> be
543
+
* the value of {{SpatialNavigationSearchOptions/candidates}} attribute of <var>options</var> if it is not <code>null</code>,
544
+
* result of <a>finding focusable areas</a> within <var>container</var> otherwise.
541
545
4. Return the result of <a>selecting the best candidate</a> among <var>areas</var> within <var>container</var> in <var>direction</var> from the element.
542
546
543
547
Note: When neither a container nor a list of candidates is provided,
0 commit comments