Bug 7110

Summary: If multiple input elements have the same access key on a page the last is selected instead of the first.
Product: WebKit Reporter: Troy Brandt <troyb>
Component: FormsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: mitz
Priority: P2    
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
here's an html document which displays the problem none

Troy Brandt
Reported 2006-02-06 12:53:43 PST
This is a change of behavior from the current release which selects the first input element on the page. Using WebKit-SVN-r12596 with the example below. the second element is selected when hitting control-s. the expected behavior is to have the first selected (which is what i see in the installed 10.4.4 WebKit). <body> <form action="accesskey.html"> hit control-s <input accesskey="s" type="submit" value="1" /> <input accesskey="s" type="submit" value="2" /> </form> </body>
Attachments
here's an html document which displays the problem (227 bytes, text/html)
2006-02-06 12:56 PST, Troy Brandt
no flags
Troy Brandt
Comment 1 2006-02-06 12:56:11 PST
Created attachment 6300 [details] here's an html document which displays the problem
Joost de Valk (AlthA)
Comment 2 2006-02-08 12:06:01 PST
I think our current behavior is better than our previous, since this matches firefox, closing as wontfix.
mitz
Comment 4 2007-02-26 10:34:55 PST
*** Bug 12898 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.