Skip to content

Commit c57b5e0

Browse files
author
Jihye Hong
committed
Modify the description of focusableArea
* Remove redundant description (Finding focusable areas already returns DOM anchor, therefore `anchor` variable isn't necessary.)
1 parent 3bfa90f commit c57b5e0

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

css-nav-1/Overview.bs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -499,17 +499,15 @@ the User Agent must run the steps described below:
499499
if <var>option</var> is present and its value is equal to <code>'all'</code>,
500500
or <code>true</code> otherwise.
501501
2. Let <var>areas</var> be the result of <a>finding focusable areas</a> within the element with <var>visibleOnly</var> as argument.
502-
3. Let <var>anchors</var> be a <a for=list>clone</a> of <var>areas</var>,
503-
with every <a>focusable area</a> which is not itself a <a>Node</a> replaced with its <a>DOM anchor</a>.
504-
4. Return <var>anchors</var>
502+
4. Return <var>areas</var>
505503

506504
</div>
507505

508506
<div class=example id=focusAreas-visible>
509507
The following code shows how to get all the visible focusable elements in the current page using {{Element/focusableAreas()}}.
510508
If the method finds a <a>spatial navigation container</a>, it recursively finds focusable areas inside it.
511-
However, as the {{FocusableAreasOption/mode}} attribute of this method is set to <code>visible</code>,
512-
the focusable element which isn’t inside the <a>scrollport</a> is excluded from the result.
509+
Because the value of the {{FocusableAreasOption/mode}} attribute in this method is <code>visible</code>,
510+
the focusable elements which aren't inside the <a>scrollport</a> are excluded from the result.
513511

514512
<pre><code highlight=markup>
515513
&lt;body>

0 commit comments

Comments
 (0)