W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2009

[whatwg] Nested list

From: Ryosuke Niwa <rniwa@google.com>
Date: Thu, 2 Jul 2009 15:05:09 -0700
Message-ID: <5a068af50907021505jd494b69n552f7ea68032c344@mail.gmail.com>
Hi, I just realized that in HTML4.01 spec, DTD doesn't seem to allow
nested OL or UL without LI.  See
http://www.w3.org/TR/REC-html40/struct/lists.html#h-10.2  In fact, the
nested list example is marked deprecated. ?But in practice, all major
user agents produce nested list when execCommand("Indent"...) is
executed. ?Is there any chance we can?standardize?nested lists, and in
particular, what UA produce?

For example, all?major?browsers (Firefox, IE, & WebKit)?produce
slightly different?versions of HTML?when?indenting?"item?2"?in the
following HTML (assume it's content-editable):
<ol>
<ol id="u1"><li id="i1">item 1</li></ol>
<li id="i2">item 2</li>
<ol id="u3"><li id="i3">item 3</li></ol>
</ol>

In particular, many UA remove arbitrary id attributes.

Best regards,
Ryosuke Niwa
rniwa at google.com
Received on Thursday, 2 July 2009 15:05:09 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:13 UTC