Closed Bug 45781 Opened 25 years ago Closed 25 years ago

<div> inside <font> tags causes <p>s to render inline

Categories

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

All
Mac System 8.5
defect

Tracking

()

VERIFIED DUPLICATE of bug 42388

People

(Reporter: sfraser_bugs, Assigned: clayton)

References

()

Details

(Keywords: testcase)

Attachments

(1 file)

The BBC news site has some bad HTML that, however, renders fine in older browsers. It has something like: <font ...> <div> <p> blah <p> </div> </font> This HTML causes those <p>s to render as inline, rather than block elements. This only appears to happen with the loose DTD. Testcase file is attached.
Attached file Testcase file
I believe this is the intended behavior of the Transitional DTD (triggered by Transitional FPI with a System ID). Changing component to HTML Parser and marking as duplicate of bug 42388, since that's where the rest of these bugs are going. I'm not sure if that's the best thing to do with them, but it's better to have a uniform policy... *** This bug has been marked as a duplicate of 42388 ***
Status: NEW → RESOLVED
Closed: 25 years ago
Component: Layout → Parser
Resolution: --- → DUPLICATE
But this breaks backward compatibility with 4.x (which renders the pages just fine).
I know. If you want to discuss it, see the (surprisingly quiet) thread "parser and layout modes" on mozilla-layout. Also see bug 42781.
Verified
Status: RESOLVED → VERIFIED
Keywords: testcase
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: