It's not a Firefox bug. It's a bug in your HTML. Specifically,
<tr><form name=myform action=test.cgi method=get> is illegal. The
TR element can only contain
(TH|TD)+. You can make it legal by placing the TABLE inside the FORM, or you can place the FORM inside a TD.