<dialog>.showModal() should ignore unfocusable elements with [autofocus] |
||
Issue descriptionThe spec says: """ Let control be the first non-inert *focusable* area in subject's control group whose DOM anchor has an autofocus attribute specified. """ The code currently looks for the first element with the autofocus="" attribute but doesn't check if the found element is also *focusable*. https://html.spec.whatwg.org/multipage/forms.html#dialog-focusing-steps
,
Jul 7 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/4e83c20aacf7d5b4deddf638da54239fe9a7bfdb commit 4e83c20aacf7d5b4deddf638da54239fe9a7bfdb Author: dbeam <dbeam@chromium.org> Date: Thu Jul 07 17:59:33 2016 HTMLDialogElement#showModal() should ignore unfocusable elements with [autofocus] """ Let control be the first non-inert *focusable* area in subject's control group whose DOM anchor has an autofocus attribute specified. """ https://html.spec.whatwg.org/multipage/forms.html#dialog-focusing-steps R=falken@chromium.org BUG= 626041 Review-Url: https://codereview.chromium.org/2125893003 Cr-Commit-Position: refs/heads/master@{#404177} [modify] https://crrev.com/4e83c20aacf7d5b4deddf638da54239fe9a7bfdb/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-autofocus-multiple-times.html [modify] https://crrev.com/4e83c20aacf7d5b4deddf638da54239fe9a7bfdb/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-autofocus.html [modify] https://crrev.com/4e83c20aacf7d5b4deddf638da54239fe9a7bfdb/third_party/WebKit/Source/core/html/HTMLDialogElement.cpp
,
Jul 7 2016
|
||
►
Sign in to add a comment |
||
Comment 1 by dbeam@chromium.org
, Jul 6 2016