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 17633 - Should ordered list numbering consider list items in child blocks?
Summary: Should ordered list numbering consider list items in child blocks?
Status: RESOLVED DUPLICATE of bug 17632
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-28 17:54 UTC by contributor
Modified: 2013-10-22 22:13 UTC (History)
4 users (show)

See Also:


Attachments

Description contributor 2012-06-28 17:54:48 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/grouping-content.html
Multipage: http://www.whatwg.org/C#the-ol-element
Complete: http://www.whatwg.org/c#the-ol-element

Comment:
Should ordered list numbering consider list items in child blocks?

Posted from: 98.110.194.72 by bzbarsky@mit.edu
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:16.0) Gecko/16.0 Firefox/16.0
Comment 1 Boris Zbarsky 2012-06-28 17:56:43 UTC
Consider this testcase:

<ol>
  <div><li>One</li></div>
  <li>Two</li>
  <li>Three</li>
</ol>

This is numbered "1, 2, 3" by Gecko, WebKit, IE7 and before, and IE quirks mode.

It's numbered "1, 1, 2" by IE8 and IE9 standards modes and Presto.

I'm pretty sure that at least for quirks mode pages depend on this behavior.  I would also somewhat prefer that the behavior here not depend on mode...

Note that for <ol reversed> this also raises the question of how the start value is computed.
Comment 3 contributor 2012-07-18 17:53:02 UTC
This bug was cloned to create bug 18263 as part of operation convergence.
Comment 4 Ian 'Hixie' Hickson 2012-08-23 21:12:15 UTC
There's two questions here really.

What the semantic number of the list items is, and what the rendered number is. For conforming documents in the absence of CSS, they should match.

For the non-conforming cases, I don't really care if they match. Ideally I'd like to define the rendering purely in terms of CSS, but CSS doesn't yet support the logic for "reverse". Semantically, I'm fine with the <div> subtree being ignored and the nodes being "1" and "2".

I'm not sure what to do in the meantime.
Comment 5 Ian 'Hixie' Hickson 2012-10-30 22:25:22 UTC
I'm going to mark this as a dupe of bug 17632, "Define rendering of <li> elements in terms of CSS".

*** This bug has been marked as a duplicate of bug 17632 ***