Bug 117442

Summary: label element should send key and focus events if it has contenteditable attribute
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: UI EventsAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: darin, enrica, jonlee
Priority: P2 Keywords: BlinkMergeCandidate
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   

Ryosuke Niwa
Reported 2013-06-10 16:41:22 PDT
Consider merging https://src.chromium.org/viewvc/blink?revision=149973&view=revision HTMLLabelElement should be focusable if it passes the test isContentEditable(). As a result, the proper events would be sent. Both Opera and Firefox support this behavior. and https://chromium.googlesource.com/chromium/blink/+/3a0c29a759041db45ac8bc7b1724f1009a6d576e A contenteditable label breaks tab focus cycling This is a regression from https://src.chromium.org/viewvc/blink?view=rev&revision=149973 When using tab to navigate the focusable elements in a page, a contenteditable label claims to be focusable, but label.focus() was not doing anything. The behavior with this patch is the same as in Opera 12.15, but different than in Firefox, because in Firefox label.focus() still does not do anything. IE 10 behaves the same as Opera, and allows label.focus() on contenteditable labels.
Attachments
Note You need to log in before you can comment on or make changes to this bug.