W3C home > Mailing lists > Public > public-html@w3.org > October 2010

Re: Missing prose in tables section for tbody-less tables

From: Anne van Kesteren <annevk@opera.com>
Date: Wed, 06 Oct 2010 11:08:26 +0200
To: "HTML WG" <public-html@w3.org>, "Daniel Glazman" <daniel.glazman@disruptive-innovations.com>
Message-ID: <op.vj5c0cx364w2qv@anne-van-kesterens-macbook-pro.local>
On Wed, 06 Oct 2010 11:00:59 +0200, Daniel Glazman  
<daniel.glazman@disruptive-innovations.com> wrote:
> Currently working on BlueGriffon, I discovered the Tables section [1]
> misses some prose to say that when <table> has no <tbody> element,
> the user agent must create at least one <tbody> and put the <tr>
> elements parsed as direct children of <table> in that <tbody>.
> The current content description for table handles the following case
>    <table><tr><td>foo</td></tr></table>
> but does not say what to do with it. All the Web's scripts rely on
> the fact a tbody container for the rows is created in that case.
> [1] http://www.w3.org/TR/html5/tabular-data.html#the-table-element

This is handled in the parsing and syntax section. Note that in XHTML you  
can create a <table> without a <tbody> so we do need to handle that case.  
(In HTML you could too, via the DOM.)

Anne van Kesteren
Received on Wednesday, 6 October 2010 09:09:03 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:16:05 UTC