Skip to content

Commit

Permalink
[giow] (3) Make document.open() do nothing on non-active documents
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20285
Affected topics: HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@7626 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 31, 2012
1 parent 307be9c commit ea9f9d3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
7 changes: 5 additions & 2 deletions complete.html
Expand Up @@ -13417,9 +13417,12 @@ <h4 id=opening-the-input-stream><span class=secno>3.4.1 </span>Opening the input

<p>When called with two or fewer arguments, the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method must act as follows:</p>

<ol><li>If the <code><a href=#document>Document</a></code> object is not flagged as an <a href=#html-documents title="HTML documents">HTML
<ol><li><p>If the <code><a href=#document>Document</a></code> object is not flagged as an <a href=#html-documents title="HTML documents">HTML
document</a>, throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these steps.</li>

<li><p>If the <code><a href=#document>Document</a></code> object is not an <a href=#active-document>active document</a>, then abort
these steps.</li>

<li><p>Let <var title="">type</var> be the value of the first argument, if there is one, or
"<code><a href=#text/html>text/html</a></code>" otherwise.</li>

Expand Down Expand Up @@ -36283,7 +36286,7 @@ <h6 id=text-styles><span class=secno>4.8.11.2.5 </span>Text styles</h6>
attribute's allowed keywords correspond to alignment points in the
font:</p>

<p><img alt="The top of the em square is roughly at the top of the glyphs in a font, the hanging baseline is where some glyphs like &#2310; are anchored, the middle is half-way between the top of the em square and the bottom of the em square, the alphabetic baseline is where characters like &Aacute;, &yuml;, f, and " height=300 src=http://images.whatwg.org/baselines.png width=738>03A9; are anchored, the ideographic baseline is where glyphs like &#31169; and &#36948; are anchored, and the bottom of the em square is roughly at the bottom of the glyphs in a font. The top and bottom of the bounding box can be far from these baselines, due to glyphs extending far outside the em square."&gt;</p>
<p><img alt="The top of the em square is roughly at the top of the glyphs in a font, the hanging baseline is where some glyphs like &#2310; are anchored, the middle is half-way between the top of the em square and the bottom of the em square, the alphabetic baseline is where characters like &Aacute;, &yuml;, f, and &Omega; are anchored, the ideographic baseline is where glyphs like &#31169; and &#36948; are anchored, and the bottom of the em square is roughly at the bottom of the glyphs in a font. The top and bottom of the bounding box can be far from these baselines, due to glyphs extending far outside the em square." height=300 src=http://images.whatwg.org/baselines.png width=738></p>

<p>The keywords map to these alignment points as follows:</p>

Expand Down
7 changes: 5 additions & 2 deletions index
Expand Up @@ -13417,9 +13417,12 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )

<p>When called with two or fewer arguments, the <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> method must act as follows:</p>

<ol><li>If the <code><a href=#document>Document</a></code> object is not flagged as an <a href=#html-documents title="HTML documents">HTML
<ol><li><p>If the <code><a href=#document>Document</a></code> object is not flagged as an <a href=#html-documents title="HTML documents">HTML
document</a>, throw an <code><a href=#invalidstateerror>InvalidStateError</a></code> exception and abort these steps.</li>

<li><p>If the <code><a href=#document>Document</a></code> object is not an <a href=#active-document>active document</a>, then abort
these steps.</li>

<li><p>Let <var title="">type</var> be the value of the first argument, if there is one, or
"<code><a href=#text/html>text/html</a></code>" otherwise.</li>

Expand Down Expand Up @@ -36283,7 +36286,7 @@ hairline width with transform. ack Shaun Morris. --></div>
attribute's allowed keywords correspond to alignment points in the
font:</p>

<p><img alt="The top of the em square is roughly at the top of the glyphs in a font, the hanging baseline is where some glyphs like &#2310; are anchored, the middle is half-way between the top of the em square and the bottom of the em square, the alphabetic baseline is where characters like &Aacute;, &yuml;, f, and " height=300 src=http://images.whatwg.org/baselines.png width=738>03A9; are anchored, the ideographic baseline is where glyphs like &#31169; and &#36948; are anchored, and the bottom of the em square is roughly at the bottom of the glyphs in a font. The top and bottom of the bounding box can be far from these baselines, due to glyphs extending far outside the em square."&gt;</p>
<p><img alt="The top of the em square is roughly at the top of the glyphs in a font, the hanging baseline is where some glyphs like &#2310; are anchored, the middle is half-way between the top of the em square and the bottom of the em square, the alphabetic baseline is where characters like &Aacute;, &yuml;, f, and &Omega; are anchored, the ideographic baseline is where glyphs like &#31169; and &#36948; are anchored, and the bottom of the em square is roughly at the bottom of the glyphs in a font. The top and bottom of the bounding box can be far from these baselines, due to glyphs extending far outside the em square." height=300 src=http://images.whatwg.org/baselines.png width=738></p>

<p>The keywords map to these alignment points as follows:</p>

Expand Down
7 changes: 5 additions & 2 deletions source
Expand Up @@ -13898,8 +13898,11 @@ plaintext = *( %x0000-2029 / %x202F-10FFFF )

<ol>

<li>If the <code>Document</code> object is not flagged as an <span title="HTML documents">HTML
document</span>, throw an <code>InvalidStateError</code> exception and abort these steps.</li>
<li><p>If the <code>Document</code> object is not flagged as an <span title="HTML documents">HTML
document</span>, throw an <code>InvalidStateError</code> exception and abort these steps.</p></li>

<li><p>If the <code>Document</code> object is not an <span>active document</span>, then abort
these steps.</p></li>

<li><p>Let <var title="">type</var> be the value of the first argument, if there is one, or
"<code>text/html</code>" otherwise.</p></li>
Expand Down

0 comments on commit ea9f9d3

Please sign in to comment.