Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (3) Make alert() and company match more browsers, and some int…
…ernal notes. Sorry, lost track of which bugs this fixes due to build process issues.

Affected topics: DOM APIs, HTML, Workers

git-svn-id: http://svn.whatwg.org/webapps@7832 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 14, 2013
1 parent 22468cc commit 7a40877
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
12 changes: 6 additions & 6 deletions complete.html
Expand Up @@ -64562,9 +64562,9 @@ <h3 id=the-window-object><span class=secno>6.2 </span>The <code><a href=#window>
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-->);

Expand Down Expand Up @@ -72392,7 +72392,7 @@ <h4 id=simple-dialogs><span class=secno>7.4.1 </span>Simple dialogs</h4>
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>
Expand Down Expand Up @@ -78637,7 +78637,7 @@ <h5 id=the-workerglobalscope-common-interface><span class=secno>9.2.1.1 </span>T
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
Expand Down Expand Up @@ -79511,7 +79511,7 @@ <h5 id=shared-workers-and-the-sharedworker-interface><span class=secno>9.2.6.3 <
<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>;
};
Expand Down
12 changes: 6 additions & 6 deletions index
Expand Up @@ -64562,9 +64562,9 @@ END:VCARD</pre>
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-->);

Expand Down Expand Up @@ -72392,7 +72392,7 @@ setTimeout({ toString: function () {
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>
Expand Down Expand Up @@ -78637,7 +78637,7 @@ worker.port.postMessage({ foo: 'structured', bar: ['data', 'also', 'possible']})
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
Expand Down Expand Up @@ -79511,7 +79511,7 @@ interface <dfn id=sharedworker>SharedWorker</dfn> : <a href=#eventtarget>EventTa
<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>;
};
Expand Down
11 changes: 5 additions & 6 deletions source
Expand Up @@ -76484,9 +76484,9 @@ END:VCARD</pre>
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-->);

Expand Down Expand Up @@ -85514,8 +85514,7 @@ setTimeout({ toString: function () {
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>
Expand Down Expand Up @@ -93031,7 +93030,7 @@ interface <dfn>SharedWorker</dfn> : <span>EventTarget</span> {
<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>;
};
Expand Down

0 comments on commit 7a40877

Please sign in to comment.