Skip to content

Instantly share code, notes, and snippets.

@seedprod
Created June 2, 2010 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seedprod/422679 to your computer and use it in GitHub Desktop.
Save seedprod/422679 to your computer and use it in GitHub Desktop.
Cascade Doctype Hack
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<!--#START-ROOT-CODE
<?php
ob_start();
?>
#END-ROOT-CODE-->
<!--#START-CODE
<?php
ob_end_clean();
echo '<!DOCTYPE html>';
echo '<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">';
?>
#END-CODE-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment