W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > July 2011

[Bug 13128] New: Allow wrapping list items in DIV elements

From: <bugzilla@jessica.w3.org>
Date: Sun, 03 Jul 2011 18:58:04 +0000
To: public-html-bugzilla@w3.org
Message-ID: <bug-13128-2486@http.www.w3.org/Bugs/Public/>

           Summary: Allow wrapping list items in DIV elements
           Product: HTML WG
           Version: unspecified
          Platform: PC
               URL: http://tanalin.com/_experimentz/bugs/w3/html/parent-di
        OS/Version: Windows NT
            Status: NEW
          Severity: major
          Priority: P2
         Component: HTML5 spec (editor: Ian Hickson)
        AssignedTo: ian@hixie.ch
        ReportedBy: mtanalin@yandex.ru
         QAContact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-wg-issue-tracking@w3.org,
        Depends on: 13062

Common fundamental issue with parent/child relations in HTML spec as a whole is
described in bug 13062.

Current one is, in particular, about wrapping _list items_ in DIV elements.

Nothing brand new here, this already works right now in all current browsers
and just needs to be made formally valid by documenting it into HTML spec. Such
documenting is one of fundamental purposes of HTML5 itself.

Following applies to lists of all types -- UL, OL, DL.

DIV is a common container element, completely free from a semantic sense. So,
it should be allowed to wrap list items in DIV elements (any number of).

Spec requirement that LI elements should be direct children of UL element
should be removed and replaced with such as following (same applies to DT/DD as
children of DL):

"List element should be first _structural_ parent of item element" (with any
number of wrapping DIVs between list and its items in hierarchy).

For example, following code should be considered valid:



Current browsers' behavior is already OK (see testcase URL):

 elements are styleable;
 DOM tree exactly corresponds to source code and is not modified by browser's
parse error corrections.

Tested in:

 Firefox 3.0-5.0;
 Chrome 9.0-12.0;
 Opera 10.0-11.5;
 IE 7-9.

Appropriate HTML spec parts just in case:


Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Sunday, 3 July 2011 18:58:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:55 UTC