<script>
if (window.testRunner)
    testRunner.dumpAsText();
</script>
Even through the srcdoc below doesn't have a DocType, it should still be in
standards mode.
<iframe srcdoc="
  <script>
  alert(document.compatMode);
  </script>
"></iframe>
