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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9.3a5

People

(Reporter: ehsan.akhgari, Assigned: mounir)

Details

Attachments

(1 file)

No description provided.
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.
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
Attached patch Patch v1Splinter Review
Attachment #449121 - Flags: review?(ehsan)
Attachment #449121 - Flags: review?(ehsan) → review+
Keywords: checkin-needed
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.

Attachment

General

Created:
Updated:
Size: