This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 7084 - <ul><li>A<ul></li>B is parsed backwards-incompatibly
Summary: <ul><li>A<ul></li>B is parsed backwards-incompatibly
Alias: None
Product: HTML WG
Classification: Unclassified
Component: pre-LC1 HTML5 spec (editor: Ian Hickson) (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Ian 'Hixie' Hickson
QA Contact: HTML WG Bugzilla archive list
Keywords: NoReply
Depends on:
Reported: 2009-07-07 09:22 UTC by Henri Sivonen
Modified: 2010-10-04 14:49 UTC (History)
4 users (show)

See Also:


Description Henri Sivonen 2009-07-07 09:22:10 UTC
Gecko bug:

Per HTML5, <ul><li>A<iul></l>B parses as:

For compat, it should parse as:
Comment 1 Henri Sivonen 2009-07-07 09:30:46 UTC
Comment 2 Ian 'Hixie' Hickson 2009-09-07 10:39:55 UTC
So "li" end tags should be scoped to something or other?
Comment 3 Ian 'Hixie' Hickson 2009-09-07 10:47:50 UTC
HTML5 matches IE8 here.
Comment 4 Simon Pieters 2009-09-07 10:57:03 UTC
(In reply to comment #2)
> So "li" end tags should be scoped to something or other?

Yes, ol and ul create a scope. When there's no "li" element in ol/ul scope, "li" end tags are ignored.

(Firefox and WebKit does the same with <dd><dl></dd>x and WebKit with <dt><dl></dt>x, but Opera does not. Have not tested IE for these. I'm not aware of sites depending on one or the other for <dl>.)

(In reply to comment #3)
> HTML5 matches IE8 here.

I think IE8 is not compatible with Web content here. This exact issue is pointed out as a compat problem in IE8 documentation, and IE8 doesn't do it in quirks or compat view modes. I think from Opera's point of view, the specified behavior is WONTIMPLEMENT for Web compat reasons.
Comment 5 Simon Pieters 2009-09-07 10:59:24 UTC
(IE7 and IE8 in quirks and compat view modes always ignore "li" end tags.)
Comment 6 Ian 'Hixie' Hickson 2009-09-07 11:09:07 UTC
Comment 7 Maciej Stachowiak 2010-03-14 14:48:24 UTC
This bug predates the HTML Working Group Decision Policy.

If you are satisfied with the resolution of this bug, please change the state of this bug to CLOSED. If you have additional information and would like the editor to reconsider, please reopen this bug. If you would like to escalate the issue to the full HTML Working Group, please add the TrackerRequest keyword to this bug, and suggest title and text for the tracker issue; or you may create a tracker issue yourself, if you are able to do so. For more details, see this document:

This bug is now being moved to VERIFIED. Please respond within two weeks. If this bug is not closed, reopened or escalated within two weeks, it may be marked as NoReply and will no longer be considered a pending comment.