Closed Bug 274854 Opened 20 years ago Closed 20 years ago

radio button lose default on refreshing form nested inside table

Categories

(Firefox :: General, defect)

1.0 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 175289

People

(Reporter: m.purbo, Assigned: bugzilla)

Details

Attachments

(1 file)

radio button default checked value lost on refreshing (F5/Ctrl+R) page, when there are input field outside <td>/<tr> tag, and <form> is nested inside <table>. this is very easy to reproduce. see following HTML snippet. field test2 with value 2 below should always be checked, but refresh will somehow move/remove the default. (refreshing once, the default will move to value 1, refreshing twice, removes default completely). note the hidden field named "hiddendevil1" inside <table> but outside <td>/<tr> <table> <form name="form1" method="post" action=""> <input type="hidden" name="hiddendevil1" value="1"> <tr> <td> <input name="test1" type="radio" value="1" >one</input> <input name="test1" type="radio" value="2" checked>two</input> <input name="test1" type="radio" value="3" >three</input> </td> </tr> </form> </table> when the <form> is outside <table> then everything is OK, e.g: <form name="form2" method="post" action=""> <table> <input type="hidden" name="hiddendevil2" value="1"> <tr> <td> <input name="test2" type="radio" value="1" >one</input> <input name="test2" type="radio" value="2" checked>two</input> <input name="test2" type="radio" value="3" >three</input> </td> </tr> </table> </form> when the <form> inside table, but <input> are all inside <td>/<tr> then everything works OK, e.g. <table> <form name="form3" method="post" action=""> <tr> <td> <input type="hidden" name="hiddendevil3" value="1"> <input name="test3" type="radio" value="1" >one</input> <input name="test3" type="radio" value="2" checked>two</input> <input name="test3" type="radio" value="3" >three</input> </td> </tr> </form> </table> the last 2 forms retains default checked value (value=2). Other facts: -> Netscape has the same problem. -> both IE/Opera works OK for all cases presented above.
to reproduce the problem, simply open attached [radio_problem.html] into firefox, and press F5/Ctrl+R twice or more and see the default value moves at the first refresh, and gone at the second refresh.
Looks very similiar to bug 175289. Look at the testcases there. Could this be a duplicate?
sorry, duplicate bug. *** This bug has been marked as a duplicate of 175289 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: