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

[whatwg] Nested list

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 4 Sep 2009 00:13:32 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0909040011210.10423@hixie.dreamhostps.com>
On Thu, 3 Sep 2009, Ojan Vafai wrote:
> I don't see what the problem here is. How is it wrong? Why can't a list be a
> type of list item?

It can:


The request was for <ol> to be directly inside <ol>, which makes no sense.

> Focusing more on practicalities, every browser produces and deals correctly
> with this type of HTML.

The spec defines how to process it.

> Given that contentEditable is used by just about every rich-text email 
> or blog-posting service, it's not like browsers can stop supporting this 
> without breaking a very long tail of sites with user-generated content.

Stop supporting what?

> Internet Explorer, Firefox, Opera, Safari and Chrome all nest lists 
> inside lists when you call execCommand('indent') on a list item. What 
> practical reason is there for them all to change this behavior?

We shouldn't encourage bad markup.

Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 3 September 2009 17:13:32 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:52 UTC