Re: What if you don't have a thead/tbody/tfoot?
- From: Sherman Pendley <spamtrap@xxxxxxxxxxx>
- Date: Tue, 08 Jan 2008 15:07:44 -0500
TonyV <kingskippus@xxxxxxxxx> writes:
On Jan 6, 2:15 pm, Sherman Pendley <spamt...@xxxxxxxxxxx> wrote:
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.
This is true, the page will still render. However, I would really
like it to be coded according to the standards in place, even if I
don't agree with them. I've never been of the "work around the
standards if they don't suit your needs" philosophy;
XHTML doesn't work at all without such workarounds; IE doesn't display it
at all unless it's served at text/html, and when it *is* served that way,
IE uses its HTML parser to display it.
So even if your XHTML page validates, you're still relying on IE's HTML
engine, which is not aware of XHTML at all, to ignore the extra slashes
and any other XML-isms that it sees as errors in HTML.
If you really wanted to avoid workarounds and hacks, you wouldn't be using
XHTML to begin with. Once you've started down that path, lying about the
content type and relying on IE's error handling to do something sensible
with markup it doesn't understand, it seems rather absurd to draw the line
at a missing tfoot element.
On Jan 6, 11:59 am, Neredbojias <monstersquas...@xxxxxxxxx> wrote:
Yeah. I flip a tbird in the general direction of the w3c and eliminate the
extraneous crap from the page.
As noted, I don't feel this is a practical long-term solution.
You've already abandoned practicality in favor of buzzword compliance, by
using XHTML markup to begin with.
sherm--
--
My blog: http://shermspace.blogspot.com
Cocoa programming in Perl: http://camelbones.sourceforge.net
.
- References:
- What if you don't have a thead/tbody/tfoot?
- From: TonyV
- Re: What if you don't have a thead/tbody/tfoot?
- From: Michael Fesser
- Re: What if you don't have a thead/tbody/tfoot?
- From: TonyV
- What if you don't have a thead/tbody/tfoot?
- Prev by Date: Re: Strange behaviour
- Next by Date: Re: Nom de Plume Complaint (slightly OT)
- Previous by thread: Re: What if you don't have a thead/tbody/tfoot?
- Next by thread: Re: What if you don't have a thead/tbody/tfoot?
- Index(es):
Relevant Pages
|