ordered list item with empty a tag in it collapses

UNCONFIRMED
Unassigned

Status

()

--
minor
UNCONFIRMED
9 years ago
9 years ago

People

(Reporter: Eike.send, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

9 years ago
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.2) Gecko/20090729 Firefox/3.5.2
Build Identifier: 

If you have an ordered list "OL" node with two "LI" list item child nodes which both have "A" link nodes as children where the content of the first is empty, the second node will be displayed above the first. This happens only if there is an empty nested A-Tag in the LI. Any number of <li><a href=""></a></li> will be collapsed in the same line.

Reproducible: Always

Steps to Reproduce:
<html>
	<head><title>empty "ol li a" test</title></head>
	<body>
doesn't work:
		<ol>
			<li><a href="#"></a></li>
			<li><a href="#">Second</a></li>
		</ol>
works:
		<ol>
			<li></li>
			<li><a href="#">Second</a></li>
		</ol>
	</body>
</html>

Actual Results:  
The "1." and "2." rows are above each other.

Expected Results:  
show the empty list item on its own row

a workaround would be to remove the A tag or insert a nbsp in the content of the A tag
You need to log in before you can comment on or make changes to this bug.