whatwg / html

HTML Standard
https://html.spec.whatwg.org/multipage/
Other
8.11k stars 2.67k forks source link

Should draggable and <link href> elements be focusable? #5490

Open TimothyGu opened 4 years ago

TimothyGu commented 4 years ago

https://html.spec.whatwg.org/C/#tabindex-value lists a few types of elements that are "suggested" to be considered focusable. Within this list are the following:

  • link elements that have an href attribute
  • Elements with a draggable attribute set, if that would enable the user agent to allow the user to begin a drag operations for those elements without the use of a pointing device

However, it doesn't appear that any browser actually implements these two things. The pretty comprehensive tabindex-focus-flag.html WPT does not test these two things either, though it tests everything else in the list.

I highly doubt the link element should be focusable, as it's used mostly for metadata. This clause was added in 457f1d52094a7e53579d3814aeb3e5b0ed8525d7, which first suggested a list of things to consider focusable.

The draggable thing looks weird too: it was added in a2726c40016e46d687eb4d675ec6b82d88b6c853 in response to this email by Aron Spohr, but no one seemed to have implemented it.

annevk commented 4 years ago

See #4831.