[html5] r7832 - [giow] (3) Make alert() and company match more browsers, and some internal notes [...]

whatwg at whatwg.org whatwg at whatwg.org
Sun Apr 14 00:26:15 PDT 2013


Author: ianh
Date: 2013-04-14 00:26:14 -0700 (Sun, 14 Apr 2013)
New Revision: 7832

Modified:
   complete.html
   index
   source
Log:
[giow] (3) Make alert() and company match more browsers, and some internal notes. Sorry, lost track of which bugs this fixes due to build process issues.
Affected topics: DOM APIs, HTML, Workers

Modified: complete.html
===================================================================
--- complete.html	2013-04-14 06:35:18 UTC (rev 7831)
+++ complete.html	2013-04-14 07:26:14 UTC (rev 7832)
@@ -64562,9 +64562,9 @@
   readonly attribute <a href=#applicationcache>ApplicationCache</a> <a href=#dom-applicationcache title=dom-applicationCache>applicationCache</a>;
 
   // user prompts
-  void <a href=#dom-alert title=dom-alert>alert</a>(DOMString message);
-  boolean <a href=#dom-confirm title=dom-confirm>confirm</a>(DOMString message);
-  DOMString? <a href=#dom-prompt title=dom-prompt>prompt</a>(DOMString message, optional DOMString default);
+  void <a href=#dom-alert title=dom-alert>alert</a>(optional DOMString message = '');
+  boolean <a href=#dom-confirm title=dom-confirm>confirm</a>(optional DOMString message = '');
+  DOMString? <a href=#dom-prompt title=dom-prompt>prompt</a>(optional DOMString message = '', optional DOMString default = '');
   void <a href=#dom-print title=dom-print>print</a>();
   any <a href=#dom-showmodaldialog title=dom-showModalDialog>showModalDialog</a>(DOMString url, optional any argument<!--, optional DOMString features-->);
 
@@ -72392,7 +72392,7 @@
    invoked.)</li>
 
    <li><p>Show the given <var title="">message</var> to the user, and ask the user to either respond
-   with a string value or abort. The second argument is optional. If the second argument (<var title="">default</var>) is present, then the response must be defaulted to the value given by
+   with a string value or abort. The response must be defaulted to the value given by
    <var title="">default</var>.</li>
 
    <li><p><a href=#pause>Pause</a> while waiting for the user's response.</li>
@@ -78637,7 +78637,7 @@
            attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-workerglobalscope-onoffline title=handler-WorkerGlobalScope-onoffline>onoffline</a>;
            attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-workerglobalscope-ononline title=handler-WorkerGlobalScope-ononline>ononline</a>;
 
-  // <a href="#WorkerGlobalScope-partial">also has obsolete members</a>
+  // <a href="#WorkerGlobalScope-partial">also has additional members in a partial interface</a>
 };</pre>
 
   <p>The <dfn id=dom-workerglobalscope-self title=dom-WorkerGlobalScope-self><code>self</code></dfn> attribute must return the
@@ -79511,7 +79511,7 @@
   <h3 id=apis-available-to-workers><span class=secno>9.3 </span>APIs available to workers</h3>
 
   <pre class=idl>[NoInterfaceObject]
-partial interface <a href=#workerglobalscope id=WorkerGlobalScope-partial>WorkerGlobalScope</a> {
+partial interface <a href=#workerglobalscope id=WorkerGlobalScope-partial>WorkerGlobalScope</a> {<!-- not obsolete -->
   void <a href=#dom-workerglobalscope-importscripts title=dom-WorkerGlobalScope-importScripts>importScripts</a>(DOMString... urls);
   readonly attribute <a href=#workernavigator>WorkerNavigator</a> <a href=#dom-worker-navigator title=dom-worker-navigator>navigator</a>;
 };

Modified: index
===================================================================
--- index	2013-04-14 06:35:18 UTC (rev 7831)
+++ index	2013-04-14 07:26:14 UTC (rev 7832)
@@ -64562,9 +64562,9 @@
   readonly attribute <a href=#applicationcache>ApplicationCache</a> <a href=#dom-applicationcache title=dom-applicationCache>applicationCache</a>;
 
   // user prompts
-  void <a href=#dom-alert title=dom-alert>alert</a>(DOMString message);
-  boolean <a href=#dom-confirm title=dom-confirm>confirm</a>(DOMString message);
-  DOMString? <a href=#dom-prompt title=dom-prompt>prompt</a>(DOMString message, optional DOMString default);
+  void <a href=#dom-alert title=dom-alert>alert</a>(optional DOMString message = '');
+  boolean <a href=#dom-confirm title=dom-confirm>confirm</a>(optional DOMString message = '');
+  DOMString? <a href=#dom-prompt title=dom-prompt>prompt</a>(optional DOMString message = '', optional DOMString default = '');
   void <a href=#dom-print title=dom-print>print</a>();
   any <a href=#dom-showmodaldialog title=dom-showModalDialog>showModalDialog</a>(DOMString url, optional any argument<!--, optional DOMString features-->);
 
@@ -72392,7 +72392,7 @@
    invoked.)</li>
 
    <li><p>Show the given <var title="">message</var> to the user, and ask the user to either respond
-   with a string value or abort. The second argument is optional. If the second argument (<var title="">default</var>) is present, then the response must be defaulted to the value given by
+   with a string value or abort. The response must be defaulted to the value given by
    <var title="">default</var>.</li>
 
    <li><p><a href=#pause>Pause</a> while waiting for the user's response.</li>
@@ -78637,7 +78637,7 @@
            attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-workerglobalscope-onoffline title=handler-WorkerGlobalScope-onoffline>onoffline</a>;
            attribute <a href=#eventhandler>EventHandler</a> <a href=#handler-workerglobalscope-ononline title=handler-WorkerGlobalScope-ononline>ononline</a>;
 
-  // <a href="#WorkerGlobalScope-partial">also has obsolete members</a>
+  // <a href="#WorkerGlobalScope-partial">also has additional members in a partial interface</a>
 };</pre>
 
   <p>The <dfn id=dom-workerglobalscope-self title=dom-WorkerGlobalScope-self><code>self</code></dfn> attribute must return the
@@ -79511,7 +79511,7 @@
   <h3 id=apis-available-to-workers><span class=secno>9.3 </span>APIs available to workers</h3>
 
   <pre class=idl>[NoInterfaceObject]
-partial interface <a href=#workerglobalscope id=WorkerGlobalScope-partial>WorkerGlobalScope</a> {
+partial interface <a href=#workerglobalscope id=WorkerGlobalScope-partial>WorkerGlobalScope</a> {<!-- not obsolete -->
   void <a href=#dom-workerglobalscope-importscripts title=dom-WorkerGlobalScope-importScripts>importScripts</a>(DOMString... urls);
   readonly attribute <a href=#workernavigator>WorkerNavigator</a> <a href=#dom-worker-navigator title=dom-worker-navigator>navigator</a>;
 };

Modified: source
===================================================================
--- source	2013-04-14 06:35:18 UTC (rev 7831)
+++ source	2013-04-14 07:26:14 UTC (rev 7832)
@@ -76484,9 +76484,9 @@
   readonly attribute <span>ApplicationCache</span> <span title="dom-applicationCache">applicationCache</span>;
 
   // user prompts
-  void <span title="dom-alert">alert</span>(DOMString message);
-  boolean <span title="dom-confirm">confirm</span>(DOMString message);
-  DOMString? <span title="dom-prompt">prompt</span>(DOMString message, optional DOMString default);
+  void <span title="dom-alert">alert</span>(optional DOMString message = '');
+  boolean <span title="dom-confirm">confirm</span>(optional DOMString message = '');
+  DOMString? <span title="dom-prompt">prompt</span>(optional DOMString message = '', optional DOMString default = '');
   void <span title="dom-print">print</span>();
   any <span title="dom-showModalDialog">showModalDialog</span>(DOMString url, optional any argument<!--, optional DOMString features-->);
 
@@ -85514,8 +85514,7 @@
    invoked.)</p></li>
 
    <li><p>Show the given <var title="">message</var> to the user, and ask the user to either respond
-   with a string value or abort. The second argument is optional. If the second argument (<var
-   title="">default</var>) is present, then the response must be defaulted to the value given by
+   with a string value or abort. The response must be defaulted to the value given by
    <var title="">default</var>.</p></li>
 
    <li><p><span>Pause</span> while waiting for the user's response.</p></li>
@@ -93031,7 +93030,7 @@
   <h3>APIs available to workers</h3>
 
   <pre class="idl">[NoInterfaceObject]
-partial interface <span id="WorkerGlobalScope-partial">WorkerGlobalScope</span> {
+partial interface <span id="WorkerGlobalScope-partial">WorkerGlobalScope</span> {<!-- not obsolete -->
   void <span title="dom-WorkerGlobalScope-importScripts">importScripts</span>(DOMString... urls);
   readonly attribute <span>WorkerNavigator</span> <span title="dom-worker-navigator">navigator</span>;
 };




More information about the Commit-Watchers mailing list