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

Lachlan Hunt lachlan.hunt at lachy.id.au
Sun Dec 3 16:16:42 PST 2006


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:

<table>
   <tr>

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

<table>
   <tbody>
     <tr>

-- 
Lachlan Hunt
http://lachy.id.au/



More information about the whatwg mailing list