Safari and document.forms

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.

This site is no longer maintained. I’m sorry, but it’s just too much work for too little return. You can continue to browse old bug reports, though.

Search reports by browser:

Atom RSS


(Add your own)

1 Posted by Christopher Lenz on 24 November 2004 | Permalink

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.

2 Posted by Jurgen on 26 November 2004 | Permalink

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