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

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

From: Aaron Leventhal <aaronlev@moonset.net>
Date: Mon, 08 Dec 2008 11:46:52 +0100
Message-ID: <493CFB1C.8010409@moonset.net>

 > Categories:Flow content 
 > Contexts in which this element may be used: Where flow content 
<http://dev.w3.org/html5/spec/Overview.html#flow-content-0> is expected.
 > Content model: Zero or more |li 
<http://dev.w3.org/html5/spec/Overview.html#the-li-element>| elements.

Is there a conflict between these things? It seems that the <ul> and 
<ol> elements allow flow content.
On the one hand, that seems to allow many kinds of descendants, such as 
child lists. However, the content model says that only <li> children are 

What about nested lists, like this?

I would think that's allowed. So, what kinds of content are allowed 
inside of <ol> and <ul>?

- Aaron
Received on Monday, 8 December 2008 02:46:52 UTC

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