[whatwg] Nested list
Simon Pieters
simonp at opera.com
Mon Jul 13 04:01:05 PDT 2009
On Fri, 03 Jul 2009 00:05:09 +0200, Ryosuke Niwa <rniwa at google.com> wrote:
> 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.
I think this is a bug in execCommand('indent') and should be fixed in
browsers.
The spec doesn't seem to list 'indent' at all. It would be helpful if it
was specified.
> 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
--
Simon Pieters
Opera Software
More information about the whatwg
mailing list