As the testcase that I will attach shows, it seems that any <button> in a form will cause it to submit. This seems to be a regression.
forgot to say, seeing this in the 27th build, bclary was seeing it with a later build too I believe
Severity: normal → major
the last known build that does not have this behavior is trunk 2001081703/win2k
Sounds pretty ugly. Added "nsbranch" keyword.
Set milestone to mozilla0.9.5
Target Milestone: mozilla0.9.4 → mozilla0.9.5
I would like to nominate this bug for nsenterprise. Buttons could be used for other purposes than submission. If non-submit type buttons always cause "submit" action, many forms will become unusable.
This problem occurs in build 2001082309/win2k. So the problem occured somewhere between 8/17 and 8/23. Sorry, but I don't have any builds from any intermediate dates and it takes me over and hour to dl a complete build. Perhaps someone else can help localize the problem more.
The problem began with the 8/21/2001 trunk build. On my 8/20 build, it is not a problem but with the 8/21 build, this problem occurs.
This is a dup and I have submitted a patch, I have to find what the bug # is.
*** This bug has been marked as a duplicate of 59035 ***
Status: NEW → RESOLVED
Last Resolved: 17 years ago
Resolution: --- → DUPLICATE
I don't think that this is a bug. According to: http://www.w3.org/TR/html4/interact/forms.html#edef-BUTTON the default type for button is submit.
kin, you are absolutely right. here i am evangelizing standards and never used type on buttons... always assuming the default type was button. This is something for all of us evangers to remember. The correct default for button type is submit but that does differ from IE and from earlier behavior in Mozilla. We will need to remember this when evanging sites, but the change in default behavior may cause us a little trouble. Fortunately it appears that hardly anyone depends on the default type being button as i did.
Status: RESOLVED → VERIFIED
Jesse's right. Reopening and closing as INVALID.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
Status: REOPENED → RESOLVED
Last Resolved: 17 years ago → 17 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
*** Bug 105399 has been marked as a duplicate of this bug. ***
*** Bug 155294 has been marked as a duplicate of this bug. ***
*** Bug 188544 has been marked as a duplicate of this bug. ***
*** Bug 192163 has been marked as a duplicate of this bug. ***
*** Bug 288289 has been marked as a duplicate of this bug. ***
*** Bug 304002 has been marked as a duplicate of this bug. ***
*** Bug 313484 has been marked as a duplicate of this bug. ***
*** Bug 317910 has been marked as a duplicate of this bug. ***
You need to log in before you can comment on or make changes to this bug.