Closed Bug 6233 Opened 26 years ago Closed 26 years ago

{compat} nested font tags badly parsed

Categories

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

x86
Windows NT
defect

Tracking

()

VERIFIED DUPLICATE of bug 991

People

(Reporter: patrick, Assigned: harishd)

References

()

Details

The type attribute of the <ul> tag on http://www.eage.nl/student specifies the list items to be started with a square, but only the first one is displayed with a square. However, the individual <li> tags are seperated by <p> paragraph breaks which might reset the "type" property. The latest IE and NS browsers display squares for the full list.
Assignee: rickg → kipp
Status: NEW → ASSIGNED
Target Milestone: M15
Assignee: kipp → rickg
Severity: minor → major
Status: ASSIGNED → NEW
Component: Layout → Parser
Summary: type attribute of <ul> tag not working correctly → nested font tags badly parsed
Target Milestone: M15
Actually, the <li> elements *contain* the empty <p> elements, they are not separated by them. Here is a distilled example that shows what the real problem is: <font> <p> Before <font> Inside </font> After </p> </font> This renders as two lines (broken at the first nested font). In StrictDTD you should be refusing to cope with this at all. In CNavDTD mode you should be parsing the <font> the same way as you parse <em> (the above snippet renders "ok" using <em> instead of <font>).
Status: NEW → ASSIGNED
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
There is a screen redraw bug here, but the list items do appear as square rects. Is there something related to this problem that I'm missing?
Put the following into one file, on its own: <font> <p> Before <font> Inside </font> After </p> </font> It should render as one line (for compatability) render as one line. Currently, a line break appears between the words Before and Inside.
Severity: major → normal
Status: RESOLVED → REOPENED
Summary: nested font tags badly parsed → {compat} nested font tags badly parsed
This is definitely still a problem. Look at the following page: http://www.bath.ac.uk/%7Epy8ieh/internet/projects/mozilla/font.html The problem is that <font> is being treated differently to <em> as far as compatability goes (note, this is only a problem w.r.t. compatability mode). For example, the following: <em> <p> Hello </p> </em> ...makes the paragraph italics. However, the following: <font color="#FF0000"> <p> Hello </p> </font> ...does not make the paragraph red. This is inconsistent behaviour.
Assignee: rickg → harishd
Status: REOPENED → NEW
Harish -- this is simply another residual style problem.
Resolution: WORKSFORME → ---
Status: NEW → RESOLVED
Closed: 26 years ago26 years ago
Resolution: --- → DUPLICATE
*** This bug has been marked as a duplicate of 991 ***
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.