Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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