Closed Bug 183982 Opened 22 years ago Closed 22 years ago

No line-breaking if closing DT tag missing for <TABLE><TR><TD><FONT><DL><DT><DD>

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 117738

People

(Reporter: larrycook, Assigned: harishd)

References

()

Details

User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2) Gecko/20021126 Build Identifier: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2) Gecko/20021126 No line-breaking occurs for a definition list if a closing DT tag is missing and this definition list is nested inside of <TABLE><TR><TD><FONT>. This is invalid HTML 3.2 per http://validator.w3.org, but if the closing DT tag is there, the definition list is correctly displayed. For that reason I thought this was worth reporting. (NOTE: The missing closing DT tag is courtesy of an M$ product used by our office admin on our department web site.) Reproducible: Always Steps to Reproduce: 1. Load the following HTML: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"> <HTML> <!-- This is an example of malformed HTML generated by M$ products. The problem is a missing closing DT tag which causes the DD defintion list to not do line-breaking. Add the missing closing DT tag and you'll see how it differs. This problem is seen with Mozilla 1.1 and 1.2.1. --> <HEAD> <META http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-1"> <TITLE>missing DT tag</TITLE> </HEAD> <BODY> <TABLE> <TR> <TD> <!--remove this and it works fine--> <FONT> <!--remove this and it works fine--> <DL> <!--or have the TD nested inside of the FONT and it works fine--> <DT> Term <!--missing closing DT causes problem--> <!--or add the missing closing DT and it works fine--> <DD> Definition </DD> </DL> </FONT> </TD> </TR> </TABLE> </BODY> </HTML> Actual Results: The missing closing DT results in the term and definition on the same line. No line-break is performed. If additional term/defintion pairs are added, all of them show up on a single line. Expected Results: Add the missing closing DT where appropriate so that the definition list is displayed with the appropriate line-breaks. This may be related to 146678 which also deals with DL nested in side of FONT, but with a missing closing FONT tag instead of missing closing DT tag. I could not reproduce 146678 unless it was also inside a TABLE, similiar to my problem.
Added reporter's testcase to URL field as a data URI.
Yep. residual style for the <font> seems to be messing with things... there is no <dd> node in the content model.
Assignee: other → harishd
Status: UNCONFIRMED → NEW
Component: Layout → Parser
Ever confirmed: true
QA Contact: ian → moied
*** Bug 125927 has been marked as a duplicate of this bug. ***
Bug 125927 deals with multiple DD tags after a DT not appearing properly, but the cause appears to be the same. Before verifying this bug fixed, please make sure that 125927 is working.
*** This bug has been marked as a duplicate of 117738 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.