Summary: | onclick handler of submit button is not triggered when pressing enter key in input field | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Michael Du <mdu> | ||||
Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | ap, dglazkov, dharitri11, ojan, sandwiched | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Attachments: |
|
Description
Michael Du
2009-04-30 16:32:02 PDT
Created attachment 29928 [details]
Here is a simple case on the issue.
Here is a simple case on the issue.
Hi, I tried fixing this bug by adding an extra condition in the submitclick() function of Htmlformelement.cpp.When comparing for the input tag I tried comaparing for the button tag also which makes the test case to pass.Can this solution be used to fix this bug ? In both Safari 4.0.4 (531.21.10) for Windows and Google Chrome 3.0.195.33, this bug is a simple matter of capitalization. "onclick" is ignored. "onClick" is obeyed. This appears to work on trunk. I have a form with a input type as submit and a onClick event which calls a function. The problem is, i have a one more input type file. When i upload a file the onClick event stops working. If i remove the uploaded file. The onclick event on the submit button works again. There are no errors shown. The form is submitted perfectly without the file upload. Don't understand what is happening here. (In reply to comment #6) > I have a form with a input type as submit and a onClick event which calls a function. The problem is, i have a one more input type file. When i upload a file the onClick event stops working. If i remove the uploaded file. The onclick event on the submit button works again. There are no errors shown. The form is submitted perfectly without the file upload. Don't understand what is happening here. Please file a new bug and point to the broken page or upload a reduced test case. |