[prev in list] [next in list] [prev in thread] [next in thread] 

List:       whatwg
Subject:    Re: [whatwg] Question about allowed <ol> and <ul> descendants
From:       Ian Hickson <ian () hixie ! ch>
Date:       2008-12-08 23:23:52
Message-ID: Pine.LNX.4.62.0812082323080.30197 () hixie ! dreamhostps ! com
[Download RAW message or body]

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.   `._.-(,_..'--(,_..'`-.;.'
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic