Closed Bug 1930 Opened 26 years ago Closed 26 years ago

<BUTTON> in table cell closes <TABLE> prematurely

Categories

(Core :: DOM: Core & HTML, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: buster, Assigned: karnaze)

References

()

Details

(Whiteboard: Need to discuss bug with engineer - correct behavior is in question.)

This is a parser problem. I've submitted a bug to rick. The <BUTTON> is forcing a premature close on the <TABLE>, resulting in an empty table followed by the 2 buttons. The test case is: <html><body> <table CELLSPACING=0 CELLPADDING=0 BORDER> <TR> <TD BGCOLOR=RED> <BUTTON style="border: 0px outset gray; padding: 0px;"> Line #1 </BUTTON> <BR> </TD> </TR> <TR> <TD BGCOLOR=YELLOW> <BUTTON style="border: 0px outset gray; padding: 0px;"> Line #2 </BUTTON> </TD> </TR> </table> </body></html>
ok, so I don't know the parser rules about BUTTON, but if you wrap table in a form, it lays out correctly. This seems like odd behavior, but it's a work-around for Rod. ================= second test case ==================== <html><body> <form> <table CELLSPACING=0 CELLPADDING=0 BORDER> <TR> <TD BGCOLOR=RED> <BUTTON style="border: 0px outset gray; padding: 0px;"> Line #1 </BUTTON> <BR> </TD> </TR> <TR> <TD BGCOLOR=YELLOW> <BUTTON style="border: 0px outset gray; padding: 0px;"> Line #2 </BUTTON> </TD> </TR> </table> </body> </html>
Status: NEW → ASSIGNED
Assignee: rickg → karnaze
Status: ASSIGNED → NEW
Component: Parser → Form Submission
Chris -- the parser is constructing the right content model. But the buttons are working strangely. Perhaps you can look into this one?
Status: NEW → ASSIGNED
Setting all current Open Critical and Major to M3
per leger, assigning QA contacts to all open bugs without QA contacts according to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
This appears to be fixed. Note that the buttons will not occupy the entire space of the cell, since there are new lines between <TD> and </TD>. To have a button occupy the entire space, remove the new lines as follows. I guess this is the right behavior. <html><body> <table CELLSPACING=0 CELLPADDING=0 BORDER=1> <TR> <TD BGCOLOR=RED><BUTTON style="border: 1px solid black;padding: 0px;">button</BUTTON></TD> </TR> </table> </body></html>
Whiteboard: Need to discuss bug with engineer - correct behavior is in question.
Status: RESOLVED → VERIFIED
Verified fixed with 5/18 build
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.