Click to See Complete Forum and Search --> : XHTML... Are you sending the correct mime header.


bokeh
08-08-2005, 11:35 AM
I have noticed many sites displaying 'xhtml 1.0 valid' buttons but I have only come across one site that validates on all URIs and sends the correct mime header to compliant browsers.

If your pages are supposed to be XHTML 1.0 are you sending the correct mime header to compliant browsers? If not why not? Why did you go to the bother of writing markup which will never get parsed as intended using the compliant browser's XML parse engine?

So really this is a challenge to see who is using XHTML 1.0 and has actually followed the standard. I'd be interested in seeing sites that claim to be valid to this standard.

Kravvitz
08-08-2005, 01:26 PM
XHTML 1.0 is allowed to be sent as text/html if it meets the HTML compatibility requirements.

I do agree that all XHTML pages should be valid and it is better to use the application/xhtml+xml mime-type when possible.

http://www.w3.org/TR/xhtml-media-types/#summary

felgall
08-08-2005, 03:58 PM
The big advantage of XHTML is that it is both valid XML and valid HTML at the same time which means that serving it as HTML will even work on old crappy browsers such as IE6.

Charles
08-08-2005, 05:08 PM
The big advantage of XHTML is that it is both valid XML and valid HTML at the same time which means that serving it as HTML will even work on old crappy browsers such as IE6.If that were correct then the XHTML 1.0 specification would not contain Appendix C. XHTML is NOT compatable with HTML.

Stephen Philbin
08-08-2005, 05:16 PM
More to the point, is there and valid reason for the documents use of XHTML. I'm yet to see an XHTML document that actually warrants the use of XHTML.

bokeh
08-08-2005, 05:23 PM
More to the point, is there and valid reason for the documents use of XHTML. I'm yet to see an XHTML document that actually warrants the use of XHTML.Here's one! (http://golem.ph.utexas.edu/~distler/blog/index.shtml)

Charles
08-08-2005, 05:29 PM
More to the point, is there and valid reason for the documents use of XHTML. I'm yet to see an XHTML document that actually warrants the use of XHTML.I've been known to use them quite a bit, but never on the web.

Charles
08-08-2005, 05:30 PM
Here's one! (http://golem.ph.utexas.edu/~distler/blog/index.shtml)That's not an XHTML document, it's an "XHTML 1.1 plus MathML 2.0" document.