Closed Bug 2296 Opened 26 years ago Closed

Table layout wrong when a nested cell contains empty <script></script> pair.

Categories

(Core :: Layout: Tables, defect, P2)

x86
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: rickg, Assigned: rickg)

References

()

Details

This comes from CNN.com. The problem appears to be the mere presense of an empty <script></script> pair in the first nested table cell. Here's the HTML: <HTML> <BODY BGCOLOR="white"> <TABLE WIDTH=600 CELLPADDING="0" CELLSPACING="0" BORDER="1"> <TR> <TD COLSPAN="3"> <TABLE BORDER="1" WIDTH="600" CELLSPACING="0" CELLPADDING="0"> <TR> <TD WIDTH="120"> <table width="100%" cellpadding=0 cellspacing=0 border=1> <tr bgcolor=red> <td> cell data <SCRIPT language="javascript"></SCRIPT> </TD> </tr> </table> </TD> </TR> </TABLE> </TD> </TR> <TR> <TD> cell data 2 </td> <!-- notice the missing close tags here: </TR></TABLE> --> </body> </html> RESULT: You expect a nested table with this output ------------- | 1st cell | ------------- | 2nd cell | ------------- 1. If you remove the (non-functional) <script></script> pair in, then it renders correctly. 2. If you put a closing </TR> before the ending </BODY>, then it renders correctly. 3. Otherwise, you only see the first row. NOTE: The content model appears to be identical, and correct in any case.
Assignee: buster → vidur
V: I believe you already fixed this. I'm assigning it to you to verify it was the same problem you've already fixed.
Assignee: vidur → rickg
Well, table layout seems reasonable now. There are some styles that don't seem to be showing up (e.g. the text styles in the left sidebar). When I pointed this out to Kipp some time ago, he suggested that they might actually be parser problems.
Status: NEW → ASSIGNED
Fixed by improvements to new DTD system; also fixed one in comment parsing.
Status: RESOLVED → VERIFIED
verified fixed
You need to log in before you can comment on or make changes to this bug.