bug with <li> element included in inline element

  • Thread starter Thread starter karlis
  • Start date Start date
K

karlis

dont know where to report IE bugs, so post to this
newsgroup. hopefully somebody who knows what to do with
this info will take further care. :)

see following code:
-------------------------------------------------
<html>
<body>
<div onClick="alert(this.innerHTML)">
<span><li>text</li></span>
</div>
</body>
</html>
-------------------------------------------------
Both IE 5.5 and 6 interpret "<span><li>text</li></span>"
as "<SPAN><LI>text</SPAN> </LI>" -- notice replaced
closing tags. the same happens if using u, i, b, q tags
instead of span.

good luck, karlis.
 
karlis said:
dont know where to report IE bugs, so post to this
newsgroup. hopefully somebody who knows what to do with
this info will take further care. :)

see following code:
-------------------------------------------------
<html>
<body>
<div onClick="alert(this.innerHTML)">
<span><li>text</li></span>
</div>
</body>
</html>
-------------------------------------------------
Both IE 5.5 and 6 interpret "<span><li>text</li></span>"
as "<SPAN><LI>text</SPAN> </LI>" -- notice replaced
closing tags. the same happens if using u, i, b, q tags
instead of span.

A list-item (<li>) without an outer <ol> or <ul> tag is improper HTML, so its
not surprising that browsers render them in strange and unpredictable ways
(http://www.everything2.com/index.pl?node_id=532453).
 
Back
Top