[html5] r7738 - [giow] (3) document.open() replaces when the current doc is the initial about:bl [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Mar 7 14:03:46 PST 2013


Author: ianh
Date: 2013-03-07 14:03:45 -0800 (Thu, 07 Mar 2013)
New Revision: 7738

Modified:
   complete.html
   index
   source
Log:
[giow] (3) document.open() replaces when the current doc is the initial about:blank
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17093
Affected topics: HTML Syntax and Parsing

Modified: complete.html
===================================================================
--- complete.html	2013-03-06 23:03:35 UTC (rev 7737)
+++ complete.html	2013-03-07 22:03:45 UTC (rev 7738)
@@ -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 6 March 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 7 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>
@@ -11727,9 +11727,18 @@
    <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>
 
-   <li><p>Let <var title="">replace</var> be true if there is a second argument and it is an
-   <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the value "replace", and false otherwise.</li>
+   <li>
 
+    <p>If there is a second argument and it is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
+    value "replace", then let <var title="">replace</var> be true.</p>
+
+    <p>Otherwise, if the <a href=#browsing-context>browsing context</a>'s <a href=#session-history>session history</a> contains only
+    one <code><a href=#document>Document</a></code>, and that was the <code><a href=#about:blank>about:blank</a></code> <code><a href=#document>Document</a></code>
+    created when the <a href=#browsing-context>browsing context</a> was created, then let <var title="">replace</var>
+    be true.</p>
+
+    <p>Otherwise, let <var title="">replace</var> be false.</li>
+
    <li>
 
     <p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> that isn't a

Modified: index
===================================================================
--- index	2013-03-06 23:03:35 UTC (rev 7737)
+++ index	2013-03-07 22:03:45 UTC (rev 7738)
@@ -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 6 March 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 7 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>
@@ -11727,9 +11727,18 @@
    <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>
 
-   <li><p>Let <var title="">replace</var> be true if there is a second argument and it is an
-   <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the value "replace", and false otherwise.</li>
+   <li>
 
+    <p>If there is a second argument and it is an <a href=#ascii-case-insensitive>ASCII case-insensitive</a> match for the
+    value "replace", then let <var title="">replace</var> be true.</p>
+
+    <p>Otherwise, if the <a href=#browsing-context>browsing context</a>'s <a href=#session-history>session history</a> contains only
+    one <code><a href=#document>Document</a></code>, and that was the <code><a href=#about:blank>about:blank</a></code> <code><a href=#document>Document</a></code>
+    created when the <a href=#browsing-context>browsing context</a> was created, then let <var title="">replace</var>
+    be true.</p>
+
+    <p>Otherwise, let <var title="">replace</var> be false.</li>
+
    <li>
 
     <p>If the <code><a href=#document>Document</a></code> has an <a href=#active-parser>active parser</a> that isn't a

Modified: source
===================================================================
--- source	2013-03-06 23:03:35 UTC (rev 7737)
+++ source	2013-03-07 22:03:45 UTC (rev 7738)
@@ -11935,9 +11935,18 @@
    <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>
 
-   <li><p>Let <var title="">replace</var> be true if there is a second argument and it is an
-   <span>ASCII case-insensitive</span> match for the value "replace", and false otherwise.</p></li>
+   <li>
 
+    <p>If there is a second argument and it is an <span>ASCII case-insensitive</span> match for the
+    value "replace", then let <var title="">replace</var> be true.</p>
+
+    <p>Otherwise, if the <span>browsing context</span>'s <span>session history</span> contains only
+    one <code>Document</code>, and that was the <code>about:blank</code> <code>Document</code>
+    created when the <span>browsing context</span> was created, then let <var title="">replace</var>
+    be true.</p>
+
+    <p>Otherwise, let <var title="">replace</var> be false.</p></li>
+
    <li>
 
     <p>If the <code>Document</code> has an <span>active parser</span> that isn't a




More information about the Commit-Watchers mailing list