Bug 15620 - Clicking on the content of a label element doesn't give focus
Summary: Clicking on the content of a label element doesn't give focus
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 419.x
Hardware: Mac OS X 10.4
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-22 08:04 PDT by James Sumners
Modified: 2007-11-16 12:23 PST (History)
0 users

See Also:


Attachments
This is a test case for the bug. (509 bytes, text/html)
2007-10-22 08:06 PDT, James Sumners
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.