[thelist] xhtml + custom tags

Jeff Howden jeff at jeffhowden.com
Sat Sep 13 23:10:50 CDT 2003


nemesis,

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Nemesis
>
> > IE chokes on the following link because of the xhtml
> > file extension:
> >
> > http://home1.gte.net/res1hvtm/index.xhtml
> >
>
> I know IE chokes on .xhtml, that was my point.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

actually, it has nothing to do with the file extension.  the fact that
you're serving it as application/xhtml+xml is what's foobarring ie.

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> xhtml 1.1 requires the mime type application/xhtml+xml.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

fine, that's stated as such in the docs [1].

><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> If you use that mime type you should serve the doc as
> .xhtml or .xml. I guess what I am trying to say is if
> you used .html with xhtml 1.1 it would be an invalid
> doc.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><

that's flawed thinking that isn't substantiated by anything i've read in the
specs.  mime-types don't necessarily have parallel file extensions.  if they
did, everyone that uses php, asp, coldfusion, etc. would be majorly hosed.

the conclusion?  the .xhtml file extension is totally unnecessary.  you can
still serve your xhtml documents up with a .html file extension because it's
the mime-type that makes the difference.

.jeff

------------------------------------------------------
Jeff Howden - Web Application Specialist
Resume - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/

[1] http://www.w3.org/TR/xhtml-media-types/#application-xhtml-xml



More information about the thelist mailing list