Opera Bug #131508

Form elements set to display:none; are not updated when a form is reset

Fixed in Opera 7.23

This is block one with a simple select box.
Click here to hide this div using display:none; and open the next div
This is block two with some checkboxes. The first is checked by default.
Item 1:
Item 2:
Item 3:
Item 4:
Click here to hide this div using display:none; and open the next div
This is block three with a couple text fields. The first has the default value "Opera".
Entry 1:
Entry 2:
Click here to hide this div using display:none; and open the next div

After you make some selections/changes in the form above, confirm that your selections remain if you switch between the three blocks.

The bug:

Hitting this button, *should* reset the select box, all four checkboxes and the two text fields. However, it will only reset the currently displayed part of the form.

Both MSIE and Mozilla handle this situation correctly.

Going further:

Each of the following buttons will display the current value of the form elements in each div:

We see here the extent of the problem. Form elements are read correctly as long as they are displayed. If not, Opera uses their default values instead which is a very serious error. Even worse, even though the first item on the select list in div1 is selected by default, Opera displays nothing if you try to read it's contents while another div is displayed. This presents a serious barrier to dynamic client-side form processing.

Once again, both MSIE and Mozilla handle it correctly.


Main Bug List