Closed Bug 281193 Opened 20 years ago Closed 20 years ago

Forms and JavaScript: name="submit" and submit() clash

Categories

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

x86
Windows XP
defect
Not set
major

Tracking

()

VERIFIED DUPLICATE of bug 72156

People

(Reporter: gunar.werner, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; de-DE; rv:1.7.5) Gecko/20041108 Firefox/1.0

If a form contains an input field named "submit" like "<input type=hidden
name=submit value=submit>", the JavaScript command "document.forms(0).submit();"
raises the error "document.forms.0.submit is not a function".

Reproducible: Always

Steps to Reproduce:
execute JavaScript submit() command
Actual Results:  
Nothing on the page - the JavaScript Console displays the error
"document.forms.XXX.submit is not a function"

Expected Results:  
Form should be submitted

The bug was tested under Firefox 1.0 and Netscape 7.1. Bugs #178909 und #223791
could be caused by or related to this problem but it's uncertain for poor
description.
Assignee: general → general
Component: JavaScript Engine → DOM: Level 0
QA Contact: pschwartau → ian

*** This bug has been marked as a duplicate of 72156 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Attached file Form
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: