diff --git a/source b/source index 52fdf3f969f..b64fbfbc5df 100644 --- a/source +++ b/source @@ -3175,8 +3175,8 @@ a.setAttribute('href', 'https://example.com/'); // change the content attribute
HTMLCollection
interfaceHTMLCollection.length
attributeHTMLCollection.item()
methodA node is a focus navigation scope owner if it is a document, a + shadow host or a slot.
+ +Each focus navigation scope owner has a focus navigation scope, which + is a list of elements. Its contents are determined as follows:
+ +Every element element has an associated focus navigation owner, which is + either null or a focus navigation scope owner. It is determined by the following + algorithm:
+ +If element's parent is null, then return null.
If element's parent is a shadow host, then return + element's assigned slot.
If element's parent is a shadow root, then return the parent's + host.
If element's parent is the document element, then return the + parent's node document.
Return element's parent's associated focus navigation owner.
Then, the contents of a given focus navigation scope owner owner's + focus navigation scope are all elements whose associated focus navigation + owner is owner.
+ +The order of elements within a focus navigation scope does not impact + any of the algorithms in this specification. Ordering only becomes important for the + tabindex-ordered focus navigation scope and flattened tabindex-ordered focus + navigation scope concepts defined below.
+ +A tabindex-ordered focus navigation scope is a list of focusable areas and focus navigation + scope owners. Every focus navigation scope owner owner has + tabindex-ordered focus navigation scope, whose contents are determined as + follows:
+ +It contains all elements in owner's focus navigation scope that + are themselves focus navigation scope owners, + except the elements whose tabindex value is a negative integer.
It contains all of the focusable areas whose + DOM anchor is an element in owner's focus navigation scope, + except the focusable areas whose tabindex value is a negative integer.
The order within a tabindex-ordered focus navigation scope is determined by each + element's tabindex value, as described in the section below.
+The rules there do not give a precise ordering, as they are composed mostly of + "should" statements and relative orderings.
+ +A flattened tabindex-ordered focus navigation scope is a list of focusable areas. Every focus navigation scope owner + owner owns a distinct flattened tabindex-ordered focus navigation scope, + whose contents are determined by the following algorithm:
+ +Let result be a clone of owner's + tabindex-ordered focus navigation scope.
For each item of result:
+ +If item is not a focus navigation scope owner, then + continue.
If item is not a focusable area, then replace item + with all of the items in item's flattened tabindex-ordered focus navigation + scope.
Otherwise, insert the contents of item's flattened tabindex-ordered + focus navigation scope after item.
tabindex
attributeThe tabindex value of an element is the value of its tabindex
attribute.
The tabindex value of a focusable area is the tabindex + value of its DOM anchor.
+If the tabindex
attribute is specified on an element, it
must be parsed using the rules for parsing integers. The attribute's values, or lack
thereof, must be interpreted as follows:
The relative ordering within a tabindex-ordered focus navigation scope for + elements and focusable areas that belong to the same focus navigation + scope and whose tabindex value is ommited or parsing the value returns an + error should be in shadow-including tree order.
Modulo platform conventions, it is suggested that for the following elements, the tabindex focus flag be set:
@@ -73721,7 +73822,7 @@ END:VCARDThe user agent must set the element's tabindex focus flag, but should omit the - element from the sequential focus navigation order.
+ element from any tabindex-ordered focus navigation scope.One valid reason to ignore the requirement that sequential focus navigation not allow the author to lead to the element would be if the user's only mechanism for moving the @@ -73738,9 +73839,12 @@ END:VCARD
The user agent must set the element's tabindex focus flag, should allow the element and any focusable areas that have the element as their - DOM anchor to be reached using sequential focus navigation, following - platform conventions to determine the element's relative position in the sequential focus - navigation order.
+ DOM anchor to be reached using sequential focus navigation. + +The relative ordering within a tabindex-ordered focus navigation scope for + elements and focusable areas that belong to the same focus navigation + scope and whose tabindex value is zero should be in shadow-including + tree order.
tabindex
attribute has a value equal to the value of the tabindex
attribute on candidate but that is
- earlier in the document in tree order than candidate,tabindex
attribute has a value equal to the value of the tabindex
attribute on candidate but that is
- later in the document in tree order than candidate, andtabindex
attribute has a value greater than the value of the
@@ -74205,10 +74310,15 @@ END:VCARD
Each Document
has a sequential focus navigation order, which orders some
or all of the focusable areas in the Document
- relative to each other. The order in the sequential focus navigation order does not
- have to be related to the tree order in the Document
itself. If a
- focusable area is omitted from the sequential focus navigation order
- of its Document
, then it is unreachable via sequential focus
+ relative to each other. Its contents and ordering are given by the flattened
+ tabindex-ordered focus navigation scope of the Document
.
Per the rules defining the flattened tabindex-ordered focus navigation
+ scope, the ordering is not necessarily related to the tree order of the
+ Document
.
If a focusable area is omitted from the sequential focus navigation
+ order of its Document
, then it is unreachable via sequential focus
navigation.
There can also be a sequential focus navigation starting point. It is initially