| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,236
|
"proper" xhtml
Has anyone started using the correct MIME type i.e. application/xhtml+xml? I've just added a php script to my site that serves up the correct MIME type and DTD in all browsers that can handle it, but then parses the code as HTML for all those (IE basically) that can't. I've read so many for and against arguements that my head hurts. In the end I thought why not try it. This site has no user input to deal with and won't be bandwidth heavy so the extra pasrsing won't affect the server too much, but on larger site's - the beat surrender for example - I'm not sure if I'd bother. Anyone taken the leap? I reckon it's gonna be the next big soap box now that css is becoming less to shout about. That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
|
|
|
|
#2 (permalink) |
|
Registered User
Join Date: Nov 2004
Posts: 1
|
Yes! And everyone else should do so, too. I've created this xhtml wizard that will create the code you need for both backwards and forwards compability. (tip: check IE and PHP) Why is this relevant? Well, xhtml must be sent as application/xhtml+xml in order to be treated as xhtml by the client. If it's sent as text/html, the browser will parse it as html. And we all know that <br /> is invalid html? |
|
![]() |