Closed
Bug 569955
Opened 15 years ago
Closed 15 years ago
Should autofocus work on display:none elements (which have no frame)?
Categories
(Core :: Layout: Form Controls, defect)
Core
Layout: Form Controls
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a5
People
(Reporter: ehsan.akhgari, Assigned: mounir)
Details
Attachments
(1 file)
|
1.74 KB,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Reporter | ||
Comment 1•15 years ago
|
||
nsFocusManager::CheckIfFocusable refused to focus an element without a frame, which raises the question of what needs to be done for elements which don't have a frame associated with them.
It would be intuitive for me to assume that they won't get focused, but we probably need to see what the spec says about this.
At any rate, we should have a test for this.
| Assignee | ||
Comment 2•15 years ago
|
||
The autofocus should focus focusable elements and elements with display: none; are not focusable.
See:
- http://dev.w3.org/html5/spec/association-of-controls-and-forms.html#attr-fe-autofocus
- http://dev.w3.org/html5/spec/editing.html#focusable
- http://dev.w3.org/html5/spec/rendering.html#being-rendered
I'm going to attach a test for that.
Assignee: nobody → mounir.lamouri
Status: NEW → ASSIGNED
OS: Mac OS X → All
Hardware: x86 → All
| Assignee | ||
Comment 3•15 years ago
|
||
Attachment #449121 -
Flags: review?(ehsan)
| Reporter | ||
Updated•15 years ago
|
Attachment #449121 -
Flags: review?(ehsan) → review+
| Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
| Reporter | ||
Comment 4•15 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a5
You need to log in
before you can comment on or make changes to this bug.
Description
•