Skip to content
Permalink
Browse files

[giow] (1) make srcdoc docs always be in standards mode

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21998
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@7960 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 12, 2013
1 parent 081d321 commit f860a86560e439ef26233deffeb5f53e711b3186
Showing with 22 additions and 18 deletions.
  1. +7 −6 complete.html
  2. +7 −6 index
  3. +8 −6 source
value of the <code title="">doctype</code> attribute of the
<code><a href=#document>Document</a></code> object.</p>

<p id=quirks-mode-doctypes>Then, if the DOCTYPE token matches
one of the conditions in the following list, then set the
<code><a href=#document>Document</a></code> to <a href=#quirks-mode>quirks mode</a>:</p>
<p id=quirks-mode-doctypes>Then, if the document is <em>not</em> <a href=#an-iframe-srcdoc-document>an <code>iframe</code>
<code title=attr-iframe-srcdoc>srcdoc</code> document</a>, and the DOCTYPE token matches
one of the conditions in the following list, then set the <code><a href=#document>Document</a></code> to <a href=#quirks-mode>quirks
mode</a>:</p>

<ul class=brief><li> The <i>force-quirks flag</i> is set to <i>on</i>. </li>
<li> The name is set to anything other than "<code title="">html</code>" (compared <a href=#case-sensitive title=case-sensitive>case-sensitively</a>). </li>
<li> The system identifier is set to: "<code title="">http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd</code>" </li>
<li> The system identifier is missing and the public identifier starts with: "<code title="">-//W3C//DTD HTML 4.01 Frameset//<!--EN--></code>" </li>
<li> The system identifier is missing and the public identifier starts with: "<code title="">-//W3C//DTD HTML 4.01 Transitional//<!--EN--></code>" </li>
</ul><p>Otherwise, if the DOCTYPE token matches one of the conditions
in the following list, then set the <code><a href=#document>Document</a></code> to
<a href=#limited-quirks-mode>limited-quirks mode</a>:</p>
</ul><p>Otherwise, if the document is <em>not</em> <a href=#an-iframe-srcdoc-document>an <code>iframe</code> <code title=attr-iframe-srcdoc>srcdoc</code> document</a>, and the DOCTYPE token matches one of
the conditions in the following list, then set the <code><a href=#document>Document</a></code> to <a href=#limited-quirks-mode>limited-quirks
mode</a>:</p>

<ul class=brief><li> The public identifier starts with: "<code title="">-//W3C//DTD XHTML 1.0 Frameset//<!--EN--></code>" </li>
<li> The public identifier starts with: "<code title="">-//W3C//DTD XHTML 1.0 Transitional//<!--EN--></code>" </li>
13 index
value of the <code title="">doctype</code> attribute of the
<code><a href=#document>Document</a></code> object.</p>

<p id=quirks-mode-doctypes>Then, if the DOCTYPE token matches
one of the conditions in the following list, then set the
<code><a href=#document>Document</a></code> to <a href=#quirks-mode>quirks mode</a>:</p>
<p id=quirks-mode-doctypes>Then, if the document is <em>not</em> <a href=#an-iframe-srcdoc-document>an <code>iframe</code>
<code title=attr-iframe-srcdoc>srcdoc</code> document</a>, and the DOCTYPE token matches
one of the conditions in the following list, then set the <code><a href=#document>Document</a></code> to <a href=#quirks-mode>quirks
mode</a>:</p>

<ul class=brief><li> The <i>force-quirks flag</i> is set to <i>on</i>. </li>
<li> The name is set to anything other than "<code title="">html</code>" (compared <a href=#case-sensitive title=case-sensitive>case-sensitively</a>). </li>
<li> The system identifier is set to: "<code title="">http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd</code>" </li>
<li> The system identifier is missing and the public identifier starts with: "<code title="">-//W3C//DTD HTML 4.01 Frameset//<!--EN--></code>" </li>
<li> The system identifier is missing and the public identifier starts with: "<code title="">-//W3C//DTD HTML 4.01 Transitional//<!--EN--></code>" </li>
</ul><p>Otherwise, if the DOCTYPE token matches one of the conditions
in the following list, then set the <code><a href=#document>Document</a></code> to
<a href=#limited-quirks-mode>limited-quirks mode</a>:</p>
</ul><p>Otherwise, if the document is <em>not</em> <a href=#an-iframe-srcdoc-document>an <code>iframe</code> <code title=attr-iframe-srcdoc>srcdoc</code> document</a>, and the DOCTYPE token matches one of
the conditions in the following list, then set the <code><a href=#document>Document</a></code> to <a href=#limited-quirks-mode>limited-quirks
mode</a>:</p>

<ul class=brief><li> The public identifier starts with: "<code title="">-//W3C//DTD XHTML 1.0 Frameset//<!--EN--></code>" </li>
<li> The public identifier starts with: "<code title="">-//W3C//DTD XHTML 1.0 Transitional//<!--EN--></code>" </li>
14 source
value of the <code title="">doctype</code> attribute of the
<code>Document</code> object.</p>

<p id="quirks-mode-doctypes">Then, if the DOCTYPE token matches
one of the conditions in the following list, then set the
<code>Document</code> to <span>quirks mode</span>:</p>
<p id="quirks-mode-doctypes">Then, if the document is <em>not</em> <span>an <code>iframe</code>
<code title="attr-iframe-srcdoc">srcdoc</code> document</span>, and the DOCTYPE token matches
one of the conditions in the following list, then set the <code>Document</code> to <span>quirks
mode</span>:</p>

<ul class="brief">
<li> The <i>force-quirks flag</i> is set to <i>on</i>. </li>
<li> The system identifier is missing and the public identifier starts with: "<code title="">-//W3C//DTD HTML 4.01 Transitional//<!--EN--></code>" </li>
</ul>

<p>Otherwise, if the DOCTYPE token matches one of the conditions
in the following list, then set the <code>Document</code> to
<span>limited-quirks mode</span>:</p>
<p>Otherwise, if the document is <em>not</em> <span>an <code>iframe</code> <code
title="attr-iframe-srcdoc">srcdoc</code> document</span>, and the DOCTYPE token matches one of
the conditions in the following list, then set the <code>Document</code> to <span>limited-quirks
mode</span>:</p>

<ul class="brief">
<li> The public identifier starts with: "<code title="">-//W3C//DTD XHTML 1.0 Frameset//<!--EN--></code>" </li>

0 comments on commit f860a86

Please sign in to comment.
You can’t perform that action at this time.