Safari and document.forms

Atom RSS

This site heavily relies on bug reports created by its readers. Anyone can report a bug and be published.

Main navigation:




Search reports by browser:

When you remove the elements of a form, Safari nonetheless keeps references to these removed elements in the document.forms.elements array.

Test page. Workaround is not included.
Reported by Petr Stanicek.

Safari | Reported on 19 November 2004.

Comments

(Add your own)

Posted by Christopher Lenz on 24 November 2004

1

While this doesn't change the fact that such zombie elements stay in the form elements array (AFAIK), you can set the name of the removed elements to an empty string to prevent them from being submitted to the server.

Posted by Jurgen on 26 November 2004

2

In Safari 1.3 (v168) this bug is fixed. i.e.
Same behavior as in Firefox

Post a comment

Commenting guidelines:

  1. When quoting specs, articles or your own research, please include a URL of the document.
  2. Test your stuff. When reporting browser behaviour, make sure that your report is correct.

Yes