Reply to Re: What if you don't have a thead/tbody/tfoot?

Your name:

Reply:


Posted by Sherman Pendley on 01/06/08 19:15

TonyV <kingskippus@gmail.com> writes:

> I've read that in XHTML 1.1, if you have a thead and tbody, you *must*
> have a tfoot. Also, according to the specification, it looks like all
> three *must* have at least one tr child element, with at least one th
> or td child element in it. Here's the spec I'm reading:
> http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#s_tablemodule
>
> My question is pretty simple. What if you want a table with just a
> thead and tbody section, but not with a tfoot section?

Just don't include the tfoot.

In practice, it doesn't matter, since neither IE6 nor 7 has a real XHTML
parser anyway. If you serve it as text/html, they'll display it, but they
use their HTML parser to do it, treating the contents of your page as HTML
and ignoring the extra slashes and unknown elements as part of its error
handling.

It won't validate, but validation isn't very useful for something that
depends on IE's error correction to display properly in the first place.

sherm--

--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация