Closed Bug 60673 Opened 24 years ago Closed 23 years ago

form submission with document.formName.submit() causes js error when run locally(with file: url)

Categories

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

x86
Other
defect

Tracking

()

RESOLVED WORKSFORME
Future

People

(Reporter: martin.honnen, Assigned: pollmann)

Details

(Keywords: dom0)

Attachments

(1 file)

When I try to submit the following form with a click on the link the JavaScript console shows an error "uncaught exception" and doesn't submit the form. This fails only when the file is loaded locally (via file: url) while a page loaded via http: from a web server loads fine. <HTML> <HEAD> <TITLE> bug demo run locally to reproduce </TITLE> <SCRIPT> var action = location.href; </SCRIPT> </HEAD> <BODY> <SCRIPT> document.write('<FORM NAME="formName" ACTION="' + action + '">'); </SCRIPT> <INPUT TYPE="hidden" NAME="fieldName" VALUE="Kibology"> <A HREF="javascript: void 0" ONCLICK="document.formName.submit(); return false;" > submit form </A> </FORM> </BODY> </HTML>
Sounds like a problem for pollmann.
Assignee: jst → pollmann
Keywords: dom0
Setting milestone to future.
Target Milestone: --- → Future
Works for me on Linux 0.9.4 and trunk 2001100108.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: