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

[whatwg] Nested list

From: Simon Pieters <simonp@opera.com>
Date: Mon, 13 Jul 2009 13:01:05 +0200
Message-ID: <op.uwz573vzidj3kv@zcorpandell.linkoping.osa>
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
Received on Monday, 13 July 2009 04:01:05 UTC

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