XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
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


Titles Only Titles Only Newest First
  • validator.w3.org still shows text/html?
    2004-11-30 18:00:32 zcorpan [Reply]

    The validators HTTP_ACCEPT is empty. You can see it by outlining this with the validator:
    <h1>Your UA Accepts <?php echo $_SERVER['HTTP_ACCEPT']; ?></h1>


    http://lists.w3.org/Archives/Public/www-validator/2004May/0159.html

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938