I am working at a fix to bug 34297
(http://bugzilla.mozilla.org/show_bug.cgi?id=34297).  We're not
submitting elements with display=none exists.  Basically, what's
happening is frames (display elements) do not exist when display=none
on a form element.  So the element exists in the DOM, but there is no
presentation.  Well, when the form submits, it goes through all the
*frames* to find out what elements to submit, so of course the values
don't get submitted.

As far as I can tell, there are radio button functions on the form
that have the same problem.

The problem is a general one: we are trying to get data from the
presentation objects (layout/frames) rather than the content (DOM). 
According to someone in the above bug, bug 52334
(http://bugzilla.mozilla.org/show_bug.cgi?id=52334) is a symptom of
the same problem.  There are probably others.

Can anyone think of other places where we are breaking the
content/presentation rule?  It seems like *always* when you get or set
data from any element other than yourself, you should use the DOM. 
Otherwise ... things disappear.

--John

Reply via email to