Closed Bug 305189 Opened 19 years ago Closed 19 years ago

Ordered lists (OL) with empty list items (LI) overlap.

Categories

(Core :: Layout: Block and Inline, defect)

defect
Not set
minor

Tracking

()

VERIFIED DUPLICATE of bug 221855

People

(Reporter: mozilla, Unassigned)

References

()

Details

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8) Gecko/20050101 Firefox/1.0
Build Identifier: Deer Park Alpha 2

The following code renders badly:
<OL>
<LI>Line one.
<LI>
<LI>Line three.
</OL>

There is a missing line feed after the "2", which means the "3" gets printed on
top of the previous line.  Adding "</LI>" to the end of each line does solve the
problem.  Maybe this bug is invalid/wontfix as a result, but surely this is a
quirks mode issue.

IE prints blank lines.  Opera skips the blank lines.  Firefox (1.0.x and Deer
Park) overprints the line numbers on top of each other.

Reproducible: Always

Steps to Reproduce:
1. Visit http://neil.fraser.name/li-bug.html

Actual Results:  
Multiple line numbers are printed directly on top of each other.

Expected Results:  
Either the lines should be blank (like IE) or they should be skipped (like Opera).

The same bug probably affects unordered lists as well, but overprinting bullets
would never be noticed.
Correction:
Adding a </LI> does NOT always fix the problem.  See this URL for a valid example:
  http://neil.fraser.name/li-bug2.html
Adding a blank tab, such as <I></I> inside the <LI></LI> respawns the bug.
Status: UNCONFIRMED → NEW
Component: General → Layout: Block and Inline
Ever confirmed: true
OS: Windows 98 → All
Product: Firefox → Core
Hardware: PC → All
Version: unspecified → Trunk
QA Contact: general → layout.block-and-inline

*** This bug has been marked as a duplicate of 221855 ***
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
Sorry, I was looking in Firefox, not in Core.  Will remember that in future. 
Thanks.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.