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



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
.



Relevant Pages

  • Re: Problem with render page to html
    ... I read on Nokia site that your phone supports XHTML not HTML 4.0 ... But if I change the config to render to "wml11", it can display ...
    (microsoft.public.dotnet.framework.aspnet.mobile)
  • Re: Language settings meta tag and doctype
    ... Either revert to HTML, or switch entirely to XHTML - in the second case you'll have to do some tricks to support IE. ... IE knows how to display XHTML pages, ...
    (alt.internet.search-engines)
  • Re: Web-design in Fedora
    ... The most prolific browser will not display XHTML served as ... XHTML, it'll only do so if it pretends to be HTML. ...
    (Fedora)
  • Re: Esoteric XHTML question about href
    ... That isn't possible - unless the HTML is going to be entered in CDATA ... If the browser can't display that first file then ... it will try the next until it finds one it can display. ... Can this be done in XHTML at all? ...
    (alt.html)
  • How can I programmatically validate html ?
    ... I am importing text from a column of a database table to display as ... those columns have badly broken html. ... content in a row and validate that against a html parser. ...
    (comp.infosystems.www.authoring.html)