- From: <bugzilla@jessica.w3.org>
- Date: Sun, 03 Jul 2011 18:58:04 +0000
- To: public-html-bugzilla@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=13128 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 v-child/lists/ 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, public-html@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: <dl> <div><div> <dt>Lorem</dt> <dd>Ipsum</dd> <dt>Dolor</dt> <dd>Sit</dd> </div></div> </dl> <ul> <div><div> <li>Lorem</li> <li>Ipsum</li> </div></div> </ul> 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: http://www.w3.org/TR/html5/grouping-content.html#the-ul-element http://www.w3.org/TR/html5/grouping-content.html#the-ol-element http://www.w3.org/TR/html5/grouping-content.html#the-li-element http://www.w3.org/TR/html5/grouping-content.html#the-dl-element http://www.w3.org/TR/html5/grouping-content.html#the-dt-element http://www.w3.org/TR/html5/grouping-content.html#the-dd-element Thanks. -- 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