W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] Question about allowed <ol> and <ul> descendants

From: Ian Hickson <ian@hixie.ch>
Date: Mon, 8 Dec 2008 23:23:52 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0812082323080.30197@hixie.dreamhostps.com>
On Mon, 8 Dec 2008, Anne van Kesteren wrote:
>
> > What about nested lists, like this?
> > <ol>
> > <li>Apples</li>
> > <li>Oranges
> > <ol>
> > <li>Seeded</li>
> > <li>Navel</li>
> > </ol>
> > </li>
> > </ol>
> > 
> > I would think that's allowed. So, what kinds of content are allowed 
> > inside of <ol> and <ul>?
> 
> If you want to nest lists the <ol> or <ul> should go inside a <li>, ever 
> since lists have been invented. ;-)

What Anne said. If you think about it, a list inside a list is just an 
item in that list. I don't know what it would mean to nest lists without 
them actually being part of an item of the parent list.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Monday, 8 December 2008 15:23:52 UTC

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