Skip to content

Commit

Permalink
[giow] (1) make srcdoc docs always be in standards mode
Browse files Browse the repository at this point in the history
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 f860a86
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 18 deletions.
13 changes: 7 additions & 6 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -88493,9 +88493,10 @@ <h6 id=the-initial-insertion-mode><span class=secno>12.2.5.4.1 </span>The "<dfn
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>
Expand Down Expand Up @@ -88574,9 +88575,9 @@ <h6 id=the-initial-insertion-mode><span class=secno>12.2.5.4.1 </span>The "<dfn
<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>
Expand Down
13 changes: 7 additions & 6 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -88493,9 +88493,10 @@ document.body.appendChild(text);
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>
Expand Down Expand Up @@ -88574,9 +88575,9 @@ document.body.appendChild(text);
<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>
Expand Down
14 changes: 8 additions & 6 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -98870,9 +98870,10 @@ document.body.appendChild(text);
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>
Expand Down Expand Up @@ -98954,9 +98955,10 @@ document.body.appendChild(text);
<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>
Expand Down

0 comments on commit f860a86

Please sign in to comment.