Closed Bug 7083 Opened 26 years ago Closed 26 years ago

[DOGFOOD] Form submission is wacky when "action" is unspecified.

Categories

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

x86
Other
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: hyatt, Assigned: karnaze)

Details

Form submission on forms with no action causes the current page containing the form to reload. This behavior busts up XUL, since we want to be able to use widgets inside forms without having an associated action. When the action attribute is specified, it seems like submit should not be trying to load a URL. The HTML4 spec states that when the action is omitted, that what you do on a form submission is unspecified. I'd like to see it not do anything, rather than reloading the current page.
Sorry, that should have read "When the action attribute is UNspecified"
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Target Milestone: M7
fixed with latest checkin.
hyatt, does this mean we can uncomment the hack in nsFormControlFrame because this should be fixed on MacOS. Win/gtk doing the wrong this is still a separate matter.
Status: RESOLVED → VERIFIED
Using the moronic test case at http://schist/7083.html and the 1999060208 build under NT, I don't see any wackiness when a form without an action is submitted. Marking verified fixed.
hack removed from build so mac now will submit forms on return key pressed.
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.