Steps: 1. create a form with a submit button in it like this: <button type="submit" onclick="alert('submit')"></button> and with at least 2 input fields in it 2. Input some text in any of the input fields and then press enter key Issue: Form gets submitted, but the onclick is ignored (unlike in other browsers) Other Browsers: IE7: OK FF3: OK Nightly tested: 42793 Bug in Chromium : http://code.google.com/p/chromium/issues/detail?id=11113
Created attachment 29928 [details] Here is a simple case on the issue. Here is a simple case on the issue.
Confirmed with r43111.
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.