W3C home > Mailing lists > Public > www-validator@w3.org > May 2011

Re: HTML5 Validator doesn't appear to understand colspan

From: John Stokes <jstokes@heartofthefyre.us>
Date: Mon, 23 May 2011 13:20:22 -0700
To: "Michael[tm] Smith" <mike@w3.org>
Cc: <www-validator@w3.org>
Message-ID: <d1b19feef814265d49a9cae3cf41d247@heartofthefyre.us>

I'm not able to post a link since the page is on an intranet site,
protected by a firewall. 

However, in reexamining my table, I see that
every first and fifth column contains a colspan attribute. 

So, for a
600px table, I could accomplish the same thing like this. 

Instead of:


I should (though without
inline styles):


Thanks for the help. 


On Tue, 24 May 2011 04:50:19 +0900, Michael[tm] Smith wrote: 

> Can
you please either post a URL for the page that contains that colspan,
or a reduced document that causes the same error to be emitted?
Note that the HTML5 spec contains the following statements:
> Tables
have rows, columns, and cells given by their descendants. The rows
> and
columns form a grid; a table's cells must completely cover that grid
without overlap.
http://dev.w3.org/html5/spec/tabular-data.html#the-table-element [1]

> The HTML5 validator includes a "table integrity" checker that
> whether the cells of a table cover its grid completely without
> That grid consists of columns and what the spec calls "slots"
that are
> established by markup in your table and that need to be
filled in with
> actual table cells by other markup in your table.
And that error message is indicating that your colspan attribute is
establishing a column that ends up not having any cells in it --
> the other markup in your table does not cause the slots in
that column to
> be filled in with actual table cells.
> --Mike
John Stokes , 2011-05-20 09:45 -0700:
>> The HTML5 validator doesn't
seem to understand a colspan attribute on a in the first row of a table.
Here is the error I receive: Table column 2 established by element td
has no cells beginning in it. Date: Thu. May. 19, 2011 If I put a
"dummy" row with the structure before the above row it validates
correctly. In reviewing the HTML5 spec, I don't see anything that
prohibits a colspan from appearing in the first row of a table, nor can
I find anything else syntatically wrong with my code. -John


Received on Monday, 23 May 2011 20:20:46 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:21 UTC