[html5] r7626 - [giow] (3) Make document.open() do nothing on non-active documents Fixing https: [...]

whatwg at whatwg.org whatwg at whatwg.org
Sun Dec 30 21:16:35 PST 2012


Author: ianh
Date: 2012-12-30 21:16:34 -0800 (Sun, 30 Dec 2012)
New Revision: 7626

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Make document.open() do nothing on non-active documents
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20285
Affected topics: HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2012-12-31 05:05:05 UTC (rev 7625)
+++ complete.html	2012-12-31 05:16:34 UTC (rev 7626)
@@ -13417,9 +13417,12 @@
 
   <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>
 
@@ -36283,7 +36286,7 @@
   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 आ 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 Á, ÿ, f, and " height=300 src=http://images.whatwg.org/baselines.png width=738>03A9; are anchored, the ideographic baseline is where glyphs like 私 and 達 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."></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 आ 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 Á, ÿ, f, and Ω are anchored, the ideographic baseline is where glyphs like 私 and 達 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>
 

Modified: index
===================================================================
--- index	2012-12-31 05:05:05 UTC (rev 7625)
+++ index	2012-12-31 05:16:34 UTC (rev 7626)
@@ -13417,9 +13417,12 @@
 
   <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>
 
@@ -36283,7 +36286,7 @@
   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 आ 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 Á, ÿ, f, and " height=300 src=http://images.whatwg.org/baselines.png width=738>03A9; are anchored, the ideographic baseline is where glyphs like 私 and 達 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."></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 आ 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 Á, ÿ, f, and Ω are anchored, the ideographic baseline is where glyphs like 私 and 達 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>
 

Modified: source
===================================================================
--- source	2012-12-31 05:05:05 UTC (rev 7625)
+++ source	2012-12-31 05:16:34 UTC (rev 7626)
@@ -13898,9 +13898,12 @@
 
   <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>
 




More information about the Commit-Watchers mailing list