Closed Bug 106746 Opened 24 years ago Closed 24 years ago

Improper rendering of the DL/DT tag

Categories

(Core :: DOM: HTML Parser, defect, P1)

x86
Linux
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.7

People

(Reporter: jlbec, Assigned: harishd)

References

()

Details

(Keywords: compat, regression, testcase, Whiteboard: [fix in hand])

Attachments

(6 files)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2+) Gecko/20010720 BuildID: 2001102308 and 2001102508 Recent nightly builds are rendering the definition list elements (<DL>, <DT>, and <DD>) incorrectly. I recently decided to update my nightly, and evidenced this problem with the builds 2001102308 and 2001102508. The following HTML is rendered incorrectly: <DL> <DT>Head 1</DT> <DD> Body 1 </DD> <DT>Head 2</DT> <DD> Body 2 </DD> </DL> It should look like this: Head 1 Body 1 Head 2 Body 2 The broken versions of Mozilla renders it thusly: Head 1 Body 1 Head 2 Body 2 Older versions (the 2001072008 build I've been using for a while now) and other browsers (Every netscape and IE, of course) render it correctly. Example source is available at http://jlbec.org/test/dt.html. Reproducible: Always
parser. The <p> tags seem to be causing issues...
Assignee: attinasi → harishd
Status: UNCONFIRMED → NEW
Component: Layout → Parser
Ever confirmed: true
QA Contact: petersen → moied
Attached file test case
The problem here is that the parser is not closing the <dt> element when it sees a <dd> as it should in quirks mode. I see this problem in my oct 26 build but not in my Oct 21 pre 0.9.5 build. dbaron calls this a pretty serious regression.
Keywords: regression
Closing the DT tag isn't the only thing. In my original test case (jlbec.org/tests/dt.html), I explicitly include the </DT> tag, and it still breaks on the second and subsequent elements.
My bad...I regressed this when fixing bug 102370. Targetting for 0.9.6.
Severity: normal → major
Status: NEW → ASSIGNED
Keywords: regression
Priority: -- → P1
Target Milestone: --- → mozilla0.9.6
Adding regression keyword that accidently got removed.
Keywords: regression
More data. Redhat 7.1, linux, x86 2001-10-10-21 was the last of the nightly builds that I tried that did not have the problem (I try them out roughly once a week). 2001-10-31-08 has the problem. Here's a site that shows the problem. Notice that "Entertainment", "News", and "Searching" should be alligned with "Work": http://members.home.net/bgarcia/
Whiteboard: [fix in hand]
Comment on attachment 56273 [details] [diff] [review] patch v1.2 [ much better patch ] heikki says r=
Attachment #56273 - Flags: review+
Comment on attachment 56273 [details] [diff] [review] patch v1.2 [ much better patch ] sr=attinasi
Attachment #56273 - Flags: superreview+
FIXED.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
linux x86 2001-11-07-21 Problem still exists. Is the fix not in yet?
I double checked with today's build ( 11/08 ) and it appears to be fixed.
linux x86 2001-11-09-06 NOT FIXED - PLEASE REOPEN See this page: http://members.home.net/bgarcia/
reopening. The page Brad points to works fine in late september builds but not in ones with this patch.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
*** Bug 107072 has been marked as a duplicate of this bug. ***
Attached patch patch v1.3Splinter Review
--> 0.9.7
Status: REOPENED → ASSIGNED
Target Milestone: mozilla0.9.6 → mozilla0.9.7
Comment on attachment 60726 [details] [diff] [review] patch v1.4 [ Do not allow DD to contain DT and vice versa ] sr=jst
Attachment #60726 - Flags: superreview+
Comment on attachment 60726 [details] [diff] [review] patch v1.4 [ Do not allow DD to contain DT and vice versa ] sr=jst
Comment on attachment 60726 [details] [diff] [review] patch v1.4 [ Do not allow DD to contain DT and vice versa ] r=heikki
Attachment #60726 - Flags: review+
FIXED.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago24 years ago
Resolution: --- → FIXED
Verified fixed with build 20020103 on Win2k and Linux. fixed checked in cvs Version 3.135
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: