[html5] r7757 - [giow] (3) Try to define when document.open() doesn't work more precisely. Fixin [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Mar 15 15:41:38 PDT 2013


Author: ianh
Date: 2013-03-15 15:41:36 -0700 (Fri, 15 Mar 2013)
New Revision: 7757

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Try to define when document.open() doesn't work more precisely.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17869
Affected topics: HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2013-03-14 00:35:54 UTC (rev 7756)
+++ complete.html	2013-03-15 22:41:36 UTC (rev 7757)
@@ -248,7 +248,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 14 March 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 15 March 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -11768,16 +11768,13 @@
 
    <li>
 
-    <p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> that isn't a
-    <a href=#script-created-parser>script-created parser</a>, and the <a href=#insertion-point>insertion point</a> associated with that
-    parser's <a href=#input-stream>input stream</a> is not undefined (that is, it <em>does</em> point to
-    somewhere in the input stream), then the method does nothing. Abort these steps and return the
-    <code><a href=#document>Document</a></code> object on which the method was invoked.</p>
+    <p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> whose <a href=#script-nesting-level>script nesting
+    level</a> is greater than zero, then the method does nothing. Abort these steps and return
+    the <code><a href=#document>Document</a></code> object on which the method was invoked.</p>
 
     <p class=note>This basically causes <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> to
-    be ignored when it's called in an inline script found during the parsing of data sent over the
-    network, while still letting it have an effect when called asynchronously or on a document that
-    is itself being spoon-fed using these APIs.</p>
+    be ignored when it's called in an inline script found during parsing, while still letting it
+    have an effect when called asynchronously.</p>
 
    </li>
 

Modified: index
===================================================================
--- index	2013-03-14 00:35:54 UTC (rev 7756)
+++ index	2013-03-15 22:41:36 UTC (rev 7757)
@@ -248,7 +248,7 @@
 
   <header class=head id=head><p><a class=logo href=http://www.whatwg.org/><img alt=WHATWG height=101 src=/images/logo width=101></a></p>
    <hgroup><h1 class=allcaps>HTML</h1>
-    <h2 class="no-num no-toc">Living Standard — Last Updated 14 March 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 15 March 2013</h2>
    </hgroup><dl><dt><strong>Web developer edition:</strong></dt>
     <dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
     <dt>Multiple-page version:</dt>
@@ -11768,16 +11768,13 @@
 
    <li>
 
-    <p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> that isn't a
-    <a href=#script-created-parser>script-created parser</a>, and the <a href=#insertion-point>insertion point</a> associated with that
-    parser's <a href=#input-stream>input stream</a> is not undefined (that is, it <em>does</em> point to
-    somewhere in the input stream), then the method does nothing. Abort these steps and return the
-    <code><a href=#document>Document</a></code> object on which the method was invoked.</p>
+    <p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> whose <a href=#script-nesting-level>script nesting
+    level</a> is greater than zero, then the method does nothing. Abort these steps and return
+    the <code><a href=#document>Document</a></code> object on which the method was invoked.</p>
 
     <p class=note>This basically causes <code title=dom-document-open><a href=#dom-document-open>document.open()</a></code> to
-    be ignored when it's called in an inline script found during the parsing of data sent over the
-    network, while still letting it have an effect when called asynchronously or on a document that
-    is itself being spoon-fed using these APIs.</p>
+    be ignored when it's called in an inline script found during parsing, while still letting it
+    have an effect when called asynchronously.</p>
 
    </li>
 

Modified: source
===================================================================
--- source	2013-03-14 00:35:54 UTC (rev 7756)
+++ source	2013-03-15 22:41:36 UTC (rev 7757)
@@ -11981,16 +11981,13 @@
 
    <li>
 
-    <p>If the <code>Document</code> has an <span>active parser</span> that isn't a
-    <span>script-created parser</span>, and the <span>insertion point</span> associated with that
-    parser's <span>input stream</span> is not undefined (that is, it <em>does</em> point to
-    somewhere in the input stream), then the method does nothing. Abort these steps and return the
-    <code>Document</code> object on which the method was invoked.</p>
+    <p>If the <code>Document</code> has an <span>active parser</span> whose <span>script nesting
+    level</span> is greater than zero, then the method does nothing. Abort these steps and return
+    the <code>Document</code> object on which the method was invoked.</p>
 
     <p class="note">This basically causes <code title="dom-document-open">document.open()</code> to
-    be ignored when it's called in an inline script found during the parsing of data sent over the
-    network, while still letting it have an effect when called asynchronously or on a document that
-    is itself being spoon-fed using these APIs.</p>
+    be ignored when it's called in an inline script found during parsing, while still letting it
+    have an effect when called asynchronously.</p>
 
    </li>
 




More information about the Commit-Watchers mailing list