[html5] validator.nu and empty table tr

Ian Hickson ian at hixie.ch
Tue Nov 30 12:08:58 PST 2010


On Tue, 30 Nov 2010, Jukka K. Korpela wrote:
> > 
> > Error: Row 1 of a row group established by a tbody element has no 
> > cells beginning on it.
> 
> Apparently validator.nu plays its own game, using existing HTML 
> recommendations rather than HTML 5 drafts in this issue.

More likely it's just a bug.

   http://bugzilla.validator.nu/


> > But ...
> > table content model: ... either zero or more tbody elements or one or
> > more tr elements
> > tr content model: Zero or more td or th elements
> 
> I guess the HTML 5 drafts deviate from previous versions of HTML because they
> wish to allow a table row with no cells to be specified, with the intent of
> filling the row dynamically with client-side scripting. I wonder why.

Rows with no cells are needed for the case where all the row's slots are 
covered by cells that have a non-zero rowspan.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the Help mailing list