[html5] r7685 - [giow] (2) Make the third argument of pushState and replaceState accept null. Fi [...]

whatwg at whatwg.org whatwg at whatwg.org
Thu Jan 31 16:18:56 PST 2013


Author: ianh
Date: 2013-01-31 16:18:54 -0800 (Thu, 31 Jan 2013)
New Revision: 7685

Modified:
   complete.html
   index
   source
Log:
[giow] (2) Make the third argument of pushState and replaceState accept null.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=17087
Affected topics: DOM APIs, HTML

Modified: complete.html
===================================================================
--- complete.html	2013-01-31 23:46:38 UTC (rev 7684)
+++ complete.html	2013-02-01 00:18:54 UTC (rev 7685)
@@ -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 31 January 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 1 February 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>
@@ -67989,8 +67989,8 @@
   void <a href=#dom-history-go title=dom-history-go>go</a>(optional long delta);
   void <a href=#dom-history-back title=dom-history-back>back</a>();
   void <a href=#dom-history-forward title=dom-history-forward>forward</a>();
-  void <a href=#dom-history-pushstate title=dom-history-pushState>pushState</a>(any data, DOMString title, optional DOMString url);
-  void <a href=#dom-history-replacestate title=dom-history-replaceState>replaceState</a>(any data, DOMString title, optional DOMString url);
+  void <a href=#dom-history-pushstate title=dom-history-pushState>pushState</a>(any data, DOMString title, optional DOMString? url);
+  void <a href=#dom-history-replacestate title=dom-history-replaceState>replaceState</a>(any data, DOMString title, optional DOMString? url);
 };</pre>
 
   <dl class=domintro><dt><var title="">window</var> . <code title=dom-history><a href=#dom-history>history</a></code> . <code title=dom-history-length><a href=#dom-history-length>length</a></code></dt>
@@ -68045,7 +68045,7 @@
 
    <dd>
 
-    <p>Pushes the given data onto the session history, with the given title, and, if provided, the given URL.</p>
+    <p>Pushes the given data onto the session history, with the given title, and, if provided and not null, the given URL.</p>
 
    </dd>
 
@@ -68053,7 +68053,7 @@
 
    <dd>
 
-    <p>Updates the current entry in the session history to have the given data, title, and, if provided, URL.</p>
+    <p>Updates the current entry in the session history to have the given data, title, and, if provided and not null, URL.</p>
 
    </dd>
 
@@ -68188,7 +68188,7 @@
 
    <li>
 
-    <p>If a third argument is specified, run these substeps:</p>
+    <p>If a third argument is specified and not null, run these substeps:</p>
 
     <ol><li><a href=#resolve-a-url title="resolve a url">Resolve</a> the value of the
      third argument, relative to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>.</li>
@@ -68222,7 +68222,7 @@
 
    <li>
 
-    <p>If a third argument is <em>not</em> specified, then let <var title="">new URL</var> be the <a href=#url>URL</a> of the
+    <p>If a third argument is <em>not</em> specified, or if one is specified but it is null, then let <var title="">new URL</var> be the <a href=#url>URL</a> of the
     <a href=#current-entry>current entry</a>.</p>
 
    <li>
@@ -101036,8 +101036,8 @@
      <td><code><a href=#the-li-element>li</a></code></td>
      <td><a href=#global-attributes title="global attributes">globals</a>;
          <code title=attr-ol-reversed><a href=#attr-ol-reversed>reversed</a></code>;
-         <code title=attr-ol-start><a href=#attr-ol-start>start</a></code></td>;
-         <code title=attr-ol-type><a href=#attr-ol-type>type</a></code>
+         <code title=attr-ol-start><a href=#attr-ol-start>start</a></code>;
+         <code title=attr-ol-type><a href=#attr-ol-type>type</a></code></td>
      <td><code><a href=#htmlolistelement>HTMLOListElement</a></code></td>
     <tr><th><code><a href=#the-optgroup-element>optgroup</a></code></th>
      <td>Group of options in a list box</td>

Modified: index
===================================================================
--- index	2013-01-31 23:46:38 UTC (rev 7684)
+++ index	2013-02-01 00:18:54 UTC (rev 7685)
@@ -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 31 January 2013</h2>
+    <h2 class="no-num no-toc">Living Standard — Last Updated 1 February 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>
@@ -67989,8 +67989,8 @@
   void <a href=#dom-history-go title=dom-history-go>go</a>(optional long delta);
   void <a href=#dom-history-back title=dom-history-back>back</a>();
   void <a href=#dom-history-forward title=dom-history-forward>forward</a>();
-  void <a href=#dom-history-pushstate title=dom-history-pushState>pushState</a>(any data, DOMString title, optional DOMString url);
-  void <a href=#dom-history-replacestate title=dom-history-replaceState>replaceState</a>(any data, DOMString title, optional DOMString url);
+  void <a href=#dom-history-pushstate title=dom-history-pushState>pushState</a>(any data, DOMString title, optional DOMString? url);
+  void <a href=#dom-history-replacestate title=dom-history-replaceState>replaceState</a>(any data, DOMString title, optional DOMString? url);
 };</pre>
 
   <dl class=domintro><dt><var title="">window</var> . <code title=dom-history><a href=#dom-history>history</a></code> . <code title=dom-history-length><a href=#dom-history-length>length</a></code></dt>
@@ -68045,7 +68045,7 @@
 
    <dd>
 
-    <p>Pushes the given data onto the session history, with the given title, and, if provided, the given URL.</p>
+    <p>Pushes the given data onto the session history, with the given title, and, if provided and not null, the given URL.</p>
 
    </dd>
 
@@ -68053,7 +68053,7 @@
 
    <dd>
 
-    <p>Updates the current entry in the session history to have the given data, title, and, if provided, URL.</p>
+    <p>Updates the current entry in the session history to have the given data, title, and, if provided and not null, URL.</p>
 
    </dd>
 
@@ -68188,7 +68188,7 @@
 
    <li>
 
-    <p>If a third argument is specified, run these substeps:</p>
+    <p>If a third argument is specified and not null, run these substeps:</p>
 
     <ol><li><a href=#resolve-a-url title="resolve a url">Resolve</a> the value of the
      third argument, relative to the <a href=#entry-script>entry script</a>'s <a href="#script's-base-url" title="script's base URL">base URL</a>.</li>
@@ -68222,7 +68222,7 @@
 
    <li>
 
-    <p>If a third argument is <em>not</em> specified, then let <var title="">new URL</var> be the <a href=#url>URL</a> of the
+    <p>If a third argument is <em>not</em> specified, or if one is specified but it is null, then let <var title="">new URL</var> be the <a href=#url>URL</a> of the
     <a href=#current-entry>current entry</a>.</p>
 
    <li>
@@ -101036,8 +101036,8 @@
      <td><code><a href=#the-li-element>li</a></code></td>
      <td><a href=#global-attributes title="global attributes">globals</a>;
          <code title=attr-ol-reversed><a href=#attr-ol-reversed>reversed</a></code>;
-         <code title=attr-ol-start><a href=#attr-ol-start>start</a></code></td>;
-         <code title=attr-ol-type><a href=#attr-ol-type>type</a></code>
+         <code title=attr-ol-start><a href=#attr-ol-start>start</a></code>;
+         <code title=attr-ol-type><a href=#attr-ol-type>type</a></code></td>
      <td><code><a href=#htmlolistelement>HTMLOListElement</a></code></td>
     <tr><th><code><a href=#the-optgroup-element>optgroup</a></code></th>
      <td>Group of options in a list box</td>

Modified: source
===================================================================
--- source	2013-01-31 23:46:38 UTC (rev 7684)
+++ source	2013-02-01 00:18:54 UTC (rev 7685)
@@ -79586,8 +79586,8 @@
   void <span title="dom-history-go">go</span>(optional long delta);
   void <span title="dom-history-back">back</span>();
   void <span title="dom-history-forward">forward</span>();
-  void <span title="dom-history-pushState">pushState</span>(any data, DOMString title, optional DOMString url);
-  void <span title="dom-history-replaceState">replaceState</span>(any data, DOMString title, optional DOMString url);
+  void <span title="dom-history-pushState">pushState</span>(any data, DOMString title, optional DOMString? url);
+  void <span title="dom-history-replaceState">replaceState</span>(any data, DOMString title, optional DOMString? url);
 };</pre>
 
   <dl class="domintro">
@@ -79644,7 +79644,7 @@
 
    <dd>
 
-    <p>Pushes the given data onto the session history, with the given title, and, if provided, the given URL.</p>
+    <p>Pushes the given data onto the session history, with the given title, and, if provided and not null, the given URL.</p>
 
    </dd>
 
@@ -79652,7 +79652,7 @@
 
    <dd>
 
-    <p>Updates the current entry in the session history to have the given data, title, and, if provided, URL.</p>
+    <p>Updates the current entry in the session history to have the given data, title, and, if provided and not null, URL.</p>
 
    </dd>
 
@@ -79816,7 +79816,7 @@
 
    <li>
 
-    <p>If a third argument is specified, run these substeps:</p>
+    <p>If a third argument is specified and not null, run these substeps:</p>
 
     <ol>
 
@@ -79862,7 +79862,7 @@
 
    <li>
 
-    <p>If a third argument is <em>not</em> specified, then let <var
+    <p>If a third argument is <em>not</em> specified, or if one is specified but it is null, then let <var
     title="">new URL</var> be the <span>URL</span> of the
     <span>current entry</span>.</p>
 
@@ -118178,7 +118178,7 @@
      <td><code>li</code></td>
      <td><span title="global attributes">globals</span>;
          <code title="attr-ol-reversed">reversed</code>;
-         <code title="attr-ol-start">start</code></td>;
+         <code title="attr-ol-start">start</code>;
          <code title="attr-ol-type">type</code></td>
      <td><code>HTMLOListElement</code></td>
     </tr>




More information about the Commit-Watchers mailing list