Closed
Bug 6233
Opened 26 years ago
Closed 26 years ago
{compat} nested font tags badly parsed
Categories
(Core :: DOM: HTML Parser, defect, P3)
Tracking
()
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.
Updated•26 years ago
|
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
Comment 1•26 years ago
|
||
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: 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?
Comment 3•26 years ago
|
||
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.
Updated•26 years ago
|
Severity: major → normal
Status: RESOLVED → REOPENED
Summary: nested font tags badly parsed → {compat} nested font tags badly parsed
Comment 4•26 years ago
|
||
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.
Updated•26 years ago
|
Resolution: WORKSFORME → ---
Status: NEW → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → DUPLICATE
Updated•26 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•