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)
Tracking
()
VERIFIED
FIXED
M3
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>
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?
Assignee | ||
Updated•26 years ago
|
Status: NEW → ASSIGNED
Comment 4•26 years ago
|
||
per leger, assigning QA contacts to all open bugs without QA contacts according
to list at http://bugzilla.mozilla.org/describecomponents.cgi?product=Browser
Assignee | ||
Updated•26 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 5•26 years ago
|
||
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>
Updated•26 years ago
|
Whiteboard: Need to discuss bug with engineer - correct behavior is in question.
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
Comment 6•26 years ago
|
||
Verified fixed with 5/18 build
Updated•6 years ago
|
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•