Bug 15620

Summary: Clicking on the content of a label element doesn't give focus
Product: WebKit Reporter: James Sumners <james.sumners>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WORKSFORME    
Severity: Normal    
Priority: P2    
Version: 419.x   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
This is a test case for the bug. none

Description James Sumners 2007-10-22 08:04:52 PDT
As per http://www.w3.org/TR/html4/interact/forms.html#edef-LABEL , when a label element is given focus (e.g. by clicking it) then the focus should be given to the associated form element.
Comment 1 James Sumners 2007-10-22 08:06:07 PDT
Created attachment 16799 [details]
This is a test case for the bug.

A simple HTML document that has two form elements with associated labels.
Comment 2 David Kilzer (:ddkilzer) 2007-10-22 09:14:53 PDT
Thanks for the bug report, James.  Which version of Safari are you using?  This has been fixed for quite a while with the Safari 3 Public Beta as well as in the WebKit Nightly builds.

http://apple.com/safari/
http://nightly.webkit.org/

Resolving as WORKSFORME since the attached test case works for me.

Comment 3 James Sumners 2007-10-22 09:22:43 PDT
Version 2.0.4 (419.3).

I guess it will be resolved for me when I eventually upgrade to OS 10.5.
Comment 4 David Kilzer (:ddkilzer) 2007-10-22 10:04:11 PDT
(In reply to comment #3)
> Version 2.0.4 (419.3).
> 
> I guess it will be resolved for me when I eventually upgrade to OS 10.5.

In the meantime, you may use a WebKit nightly build (it doesn't remove Safari 2.0.4), or you could try the Safari 3 Public Beta.

Comment 5 James Sumners 2007-11-16 12:23:35 PST
Just a note. This is works in the build of Safari that ships with 10.4.11.