CamelDung has asked for the wisdom of the Perl Monks concerning the following question:
This way, modern UA's recieved the document as intended, and legacy UA's got "tag soup".<?php header("Vary: Accept"); if (stristr($_SERVER["HTTP_ACCEPT"], "application/xhtml+xml")) header("Content-Type: application/xhtml+xml; charset=utf-8"); else header("Content-Type: text/html; charset=utf-8");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: well formed XHTML != tag soup
by Anonymous Monk on Jan 07, 2010 at 09:23 UTC | |
by CamelDung (Novice) on Jan 07, 2010 at 09:46 UTC | |
by Corion (Patriarch) on Jan 07, 2010 at 09:49 UTC | |
by Anonymous Monk on Jan 07, 2010 at 10:01 UTC | |
by CamelDung (Novice) on Jan 07, 2010 at 10:11 UTC |