Sign In/My Account | View Cart  
advertisement

Article:
 The Road to XHTML 2.0: MIME Types
Subject: validator.w3.org still shows text/html?
Date: 2003-05-13 03:01:00
From: Frank Farm

Hey Mark, thanks for the informative article! I'm trying to implement your PHP code snippet on my sites. However, when I insert the code and then validate at validator.w3.org using "verbose output" as you suggest, I still get "text/html" rather than "application/xhtml+xml". If I just say 'header("Content-type: application/xhtml+xml");' then validator.w3.org reports "application/xhtml+xml" as we want, but then since that header is being served for all browsers my sites break in some of them. When I do more testing, it seems that the HTTP_ACCEPT value being sent by the validator is a null string, but that can't be right, right? I figure I must be doing something wrong. Any suggestions?

Previous Message Previous Message   Next Message Next Message


Full Text Titles Only Newest First

Sponsored By: