Skip to content

Commit 35e3e1e

Browse files
annevkdomenic
authored andcommitted
Remove tabindex's synthetic click event feature
Other than through a feature called “spatial navigation”, currently not enabled by default in any shipping browser, this behavior is not implemented and at this point it’s highly likely shipping it would break compatibility with deployed content as discussed in #1952. Removing it to reflect reality, but as we expand the features of custom elements, exposing “activation behavior” somehow should be high on the list as the effective default is detrimental to keyboard-only users. Closes #1952.
1 parent 4c5066c commit 35e3e1e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

source

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -72205,11 +72205,6 @@ END:VCARD</pre>
7220572205

7220672206
</ul>
7220772207

72208-
<p class="note">One valid reason to ignore the platform conventions and always allow an element
72209-
to be focused (by setting its <span>tabindex focus flag</span>) would be if the user's only
72210-
mechanism for activating an element is through a keyboard action that triggers the focused
72211-
element.</p>
72212-
7221372208
</dd>
7221472209

7221572210
<dt id="negative-tabindex">If the value is a negative integer</dt>
@@ -72285,15 +72280,6 @@ END:VCARD</pre>
7228572280

7228672281
</dl>
7228772282

72288-
<p>An element that has its <span>tabindex focus flag</span> set but does not otherwise have an
72289-
<span>activation behavior</span> defined has an <span>activation behavior</span> that does
72290-
nothing.</p>
72291-
72292-
<p class="note">This means that an element that is only focusable because of its <code
72293-
data-x="attr-tabindex">tabindex</code> attribute will fire a <code
72294-
data-x="event-click">click</code> event in response to a non-mouse activation (e.g. hitting the
72295-
"enter" key while the element is <span>focused</span>).</p>
72296-
7229772283
<p>An element with the <code data-x="attr-tabindex">tabindex</code> attribute specified is
7229872284
<span>interactive content</span>.</p>
7229972285

0 commit comments

Comments
 (0)