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)
Tracking
()
People
(Reporter: keeda, Assigned: jst)
Details
Attachments
(1 file)
394 bytes,
text/html
|
Details |
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.
Reporter | ||
Comment 1•23 years ago
|
||
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.
Comment 2•23 years ago
|
||
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.
Description
•