[whatwg] Nested list

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