Closed Bug 125242 Opened 23 years ago Closed 23 years ago

Forms containing input elements with name="submit" cannot be submitted from javascript

Categories

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

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 72156

People

(Reporter: keeda, Assigned: jst)

Details

Attachments

(1 file)

If a form contains an input element named submit, then trying to submit that
form using document.formName.submit() fails.

Javascript console reports:

Error: document.form1.submit is not a function
Source File: javascript: document.form1.submit()
Line: 1

Attaching testcase that demonstrates the problem.
Attached file testcase
Clicking the first button fails to submit, and produces error on the JS
console. There is no problem at all with the second form. The only difference
between the two forms is that the first form contains an input element called
submit.
Dup of (invalid) bug 72156.

*** This bug has been marked as a duplicate of 72156 ***
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Component: DOM: HTML → DOM: Core & HTML
QA Contact: stummala → general
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: