Closed Bug 97829 Opened 23 years ago Closed 23 years ago

simple <button> in a form causes submit

Categories

(Core :: DOM: Core & HTML, defect)

x86
All
defect
Not set
major

Tracking

()

VERIFIED INVALID
mozilla0.9.5

People

(Reporter: doronr, Assigned: rods)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: critical for 0.9.4)

Attachments

(1 file)

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.
Attached file simple testcase
forgot to say, seeing this in the 27th build, bclary was seeing it with a later
build too I believe
Severity: normal → major
Keywords: regression
the last known build that does not have this behavior is trunk 2001081703/win2k
Whiteboard: critical for 0.9.4
OS: other → All
Target Milestone: --- → mozilla0.9.4
Blocks: 39985
Sounds pretty ugly. Added "nsbranch" keyword.
Keywords: nsbranch
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.
Keywords: nsenterprise
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
Closed: 23 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.
verifying duplicate
Status: RESOLVED → VERIFIED
How can this be a dup of bug 59035?  Bug 59035 is the opposite of this bug.
Jesse's right. Reopening and closing as INVALID.
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
--> INVALID
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → INVALID
verifying 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. ***
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: