From: Mike N. <mh...@us...> - 2004-04-03 23:51:56
|
Everyone, Even better, set the else doctype to transitional, and you can still use validator.w3.org. Enjoy. :-) On Sat, 2004-04-03 at 13:08, Mike Noyes wrote: > The method below is also a good xhtml well-formed debugging tool when > used with Mozilla/Firefox. > On Sat, 2004-04-03 at 10:31, Mike Noyes wrote: > > theme.php > > <?php > > if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")){ > > header("Content-Ty > > pe: application/xhtml+xml; charset=UTF-8"); > > $THEME["DOCTYPE"] = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> > > <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" > > \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; > > } else { header("Content-Type: text/html; charset=UTF-8"); > > $THEME["DOCTYPE"] = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 > > Strict//EN > > \" > > \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">"; > > } > > ?> -- Mike Noyes <mhnoyes at users.sourceforge.net> http://sourceforge.net/users/mhnoyes/ SF.net Projects: ffl, leaf, phpwebsite, phpwebsite-comm, sitedocs |