Closed Bug 363167 Opened 19 years ago Closed 19 years ago

Empty items in ordered list in correct HTML 4.01 document are overriden by the next element.

Categories

(Core :: Layout, defect)

1.8 Branch
x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 221855

People

(Reporter: dingoth, Unassigned)

Details

Attachments

(2 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.1) Gecko/20061010 Firefox/2.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr; rv:1.8.1) Gecko/20061010 Firefox/2.0 When displaying a fully validated html 4.01 document with empty list elements in an ordered list, the empty items are overriden by the next element. I can see that because of the graphical bullets (here, it is a numeric value) are overriden by the next element. the bug happens only when an item is NOT closed : <li> without </li>. (but it is still a valid html4 document. for instance, let's say there's a document with an ordered list (<ol>) with four items (<li>). All items are filled with a few characters (to get only one line when rendered), except the second line which is empty. The first item is normally displayed. The second is not displayed (since it is empty), BUT its number has been painted where it should have been if the item was not empty. The third is drawn over the second in order to fill the gap, and its number is drawn too, overriding the second item's. The fourth is correctly displayed. If there are ten empty items (<li>), the renderer draws the numbers over and over every times. Here is the document I wrote : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html41/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=cp1251"> <title>Test page</title> </head> <body> <ol> <li>element 1 <li>element 2 <li>element 3 <li><!-- element 4 --> <li>element 5 <li><!-- element 6 --> <li>element 7 <li><!-- element 8 --> <li>element 9 </ol> </body> </html> Reproducible: Always Steps to Reproduce: Load the HTML file in any Firefox version > 2 (not tested under firefox 2) even nightly builds. Actual Results: The renderer displays weird characters. Expected Results: Well, I don't know : - displaying the empty list items - avoid displaying anything, even the number of the item. In any case : have an explicit policy about that with these elements, since it could happen to CSS rendered elements with "list-style : xxx" rules, I guess. This is Gecko-related stuff, so unless I'm asked to be more explicit, no additional information is required.
Component: General → Layout
Product: Firefox → Core
QA Contact: general → layout
Version: unspecified → 1.8 Branch
*** This bug has been marked as a duplicate of 221855 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: