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
Status: VERIFIED FIXED
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
URL:
Whiteboard:
Keywords: NoReply
Depends on:
Blocks:
 
Reported: 2009-07-07 09:22 UTC by Henri Sivonen
Modified: 2010-10-04 14:49 UTC (History)
4 users (show)

See Also:


Attachments

Description Henri Sivonen 2009-07-07 09:22:10 UTC
Gecko bug: https://bugzilla.mozilla.org/show_bug.cgi?id=502804

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

For compat, it should parse as:
ul
  li
    A
    ul
      B
Comment 1 Henri Sivonen 2009-07-07 09:30:46 UTC
s|<ul><li>A<iul></l>B|<ul><li>A<ul></li>B|
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
Ok...
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:
  http://dev.w3.org/html5/decision-policy/decision-policy.html

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.