Skip to content
Permalink
Browse files

[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 7a4087737df37de718d6f4452fe177f0c8b52002
Showing with 17 additions and 18 deletions.
  1. +6 −6 complete.html
  2. +6 −6 index
  3. +5 −6 source
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-->);

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>
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
<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>;
};
12 index
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-->);

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>
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
<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>;
};
11 source
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-->);

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>
<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>;
};

0 comments on commit 7a40877

Please sign in to comment.
You can’t perform that action at this time.