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

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

From: Henri Sivonen <hsivonen@iki.fi>
Date: Wed, 6 Dec 2006 23:38:37 +0200
Message-ID: <222B8848-5357-4A34-BC43-04A1D2F5743C@iki.fi>
On Dec 6, 2006, at 23:18, Bjoern Hoehrmann wrote:

> What you probably mean is when the authoring tool makes claims  
> about the
> contents of the generated file. If it claims that the file contains a
> table element with tr child elements then it would be misbehaving, but
> not because table elements must not have tr child elements, but  
> because
> there are no such elements in the generated file. But never mind, I
> certainly do not want to stop you from torturing people who wish to
> learn about HTML syntax.

Side note:
I considered the inference of a tbody harmless enough that the  
validation mode I describe as the text/html-compatible subset of  
XHTML5 allows tr as child of table when applied to XML.

Is this a bad idea? I thought it wasn't particularly useful to flag  
trees with tr as child of table as something that would break if  
serialized as HTML5 and sent as text/html.

(This does not affect the UI that claims to be a technology preview  
of an (X)HTML5 conformance checking service. This only affects  
options in the generic UI.)

Henri Sivonen
hsivonen at iki.fi
Received on Wednesday, 6 December 2006 13:38:37 UTC

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