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

[whatwg] Content Model Restrictions on table>tr in HTML

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Mon, 04 Dec 2006 11:16:42 +1100
Message-ID: <457368EA.9020102@lachy.id.au>
Ian Hickson wrote:
> On Mon, 4 Dec 2006, Lachlan Hunt wrote:
>>   The spec should mention the additional restriction that table elements 
>> cannot contain child tr elements, because they imply the tbody element 
>> in such cases.
>> http://www.whatwg.org/specs/web-apps/current-work/#restrictions
> On Sun, 3 Dec 2006, Henri Sivonen wrote:
>> Not in XHTML5.
> What Henri said. (This is a compat-with-XHMTL1 issue.)

I was referring to HTML5, not XHTML5.  Like how in that section linked 
above it places an additional restriction on the p element:

| A p element must not contain blockquote, dl, menu, ol, pre, table, or
| ul elements, even though these elements are technically allowed inside
| p elements according to the content models described in this
| specification.

The same should be said about the use of this:


which is ok in XHTML, but in HTML it actually implies this:


Lachlan Hunt
Received on Sunday, 3 December 2006 16:16:42 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:50 UTC