Open Bug 494755 Opened 12 years ago Updated 1 year ago
Script submit() stops working after removing an element from the page using Java Script
Component: General → HTML: Form Submission
Product: Firefox → Core
QA Contact: general → form-submission
Version: unspecified → 1.9.1 Branch
Could be related to bug 586329, but this needs a testcase to be sure.
Description and solution to the problem: https://groups.google.com/forum/#!topic/mozilla.support.firefox/OSfbE-z9B9I
Attaching a test case demonstrating the issue (test-case-2015-11-17.html). Steps to reproduce: 1. Open test-case-2015-11-17.html. 2. Press “Save”. Observe form is submitted. 3. Re-open test-case-2015-11-17.html. 4. Press “Remove” to remove the button and its containing <div>. 5. Press “Save”. Observe form does not submit. Occurs on: - Firefox 42.0 on Mac OS X 10.10.5. - Firefox 42.0 / Windows 7. Does not occur on: - Safari 9.0.1 / Mac OS X 10.10.5. - Opera 33.0 / Mac OS X 10.10.5. - Chrome 46.0.2490.86 / Mac OS X 10.10.5. Additional: - Issue does not occur when `removeIt` is called from an event handler attribute. Issue does occur when `removeIt` is called from an event listener. - Removing the call to `evt.target.parentNode.remove()` resolves the issue.
One other note on test-case-2015-11-17.html: changing the <button>’s type attribute to “button” also resolves/works around the issue.
Thanks for the workaround Evan. I can confirm it with Firefox v53 - https://gist.github.com/robertknight/5f3832ba3300a6b6536a237382f1db81
can this bugs be solved or just we can closed it as incomplete?
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.