title: would having php code before doctype make browser to go into quirks mode?
body: <p>As have been discussed in one of the posts here; there was someone who dynamically attached javacript code above the doctype declaration and it then made his browser to go into quirks mode..I am currently in the same condition, only in my case I am dealing with PHP code snippet below that <strong>has</strong> to be inserted above the doctype otherwise I would get PHP "whitespace" error. </p>
  
  <pre><code>&lt;?php session_start();
  if(!session_is_registered("reg")){
      header("location:page1.php");
  }?&gt;
  &lt;!DOCTYPE html&gt;
  </code></pre>
  
  <p>So would that bring my browser into quirks mode? If it would, is there any workaround? appreciate any help/suggestion. thanks.</p>