[WebAPI] Show focus indication on elements when focus set programmatically #19302
Closed
6 of 7 tasks
Labels
Content:WebAPI
Web API docs
fx release archive
A closed issue relating to firefox release notes for developers.
Acceptance Criteria
For folks helping with Firefox related documentation
dev-doc-complete
or
Features to document
Now parameter to HTMLElement.focus() parameter -
focusVisible
Probably worth doing an interactive example.
Actual results:
The element focused does not get a focus ring unless it is an INPUT element of type TEXT or a TEXTAREA.
Related Gecko bugs
https://bugzilla.mozilla.org/show_bug.cgi?id=1765083
Other
Previously it was entirely up to the UA to decide if it should visibly indicate an element as focused if focus was set by javascript. Generally this was done for text areas but not necessarily for other elements. The spec was updated around April to add an option to HTMLElement.focus() to allow the programmer to say whether they want this or not.
The update to spec was done here: whatwg/html#8087
The text was updated successfully, but these errors were encountered: