Skip to content

Commit

Permalink
[e] (0) for compat, apparently alert() should alert '' and alert(unde…
Browse files Browse the repository at this point in the history
…fined) should alert 'undefined'

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=25686
Affected topics: DOM APIs, HTML, HTML Syntax and Parsing

git-svn-id: http://svn.whatwg.org/webapps@8638 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed May 16, 2014
1 parent e11aa28 commit 0b570cf
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 17 deletions.
15 changes: 9 additions & 6 deletions complete.html
Expand Up @@ -290,7 +290,7 @@
</script><body onload=init()>
<header class="head with-buttons" id=head><p><a href=//www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 15 May 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 16 May 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>
Expand Down Expand Up @@ -1452,7 +1452,7 @@ <h2 class="no-num no-toc" id=contents>Table of contents</h2>
<!--end-toc-->
<hr><!--
! http://lists.w3.org/Archives/Public/www-archive/2014Apr/0034.html
!--><h2 id=introduction><span class=secno>1 </span>Introduction</h2>
!--><!--CLEANUP--><!-- color => colour in prose --><h2 id=introduction><span class=secno>1 </span>Introduction</h2>


<h3 id=abstract><span class=secno>1.1 </span>Where does this specification fit?</h3>
Expand Down Expand Up @@ -69342,8 +69342,6 @@ <h4 id=security-risks-in-the-drag-and-drop-model><span class=secno>6.7.9 </span>



<!--TOPIC:HTML-->

<h2 id=browsers><span class=secno>7 </span>Loading Web pages</h2>

<div class=impl>
Expand Down Expand Up @@ -70126,7 +70124,8 @@ <h3 id=the-window-object><span class=secno>7.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>(optional DOMString message = "");
void <a href=#dom-alert title=dom-alert>alert</a>();
void <a href=#dom-alert title=dom-alert>alert</a>(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>();
Expand Down Expand Up @@ -78577,6 +78576,10 @@ <h4 id=simple-dialogs><span class=secno>8.5.1 </span>Simple dialogs</h4>
to ignore all alerts, and would thus abort at this step whenever the method was
invoked.)</li>

<li><p>If the method was invoked with no arguments, then let <var title="">message</var> be the
empty string; otherwise, let <var title="">message</var> be the method's first
argument.</li>

<li><p>Show the given <var title="">message</var> to the user.</li>

<li><p>Optionally, <a href=#pause>pause</a> while waiting for the user to acknowledge the
Expand Down Expand Up @@ -82316,7 +82319,7 @@ <h4 id=garbage-collection-1><span class=secno>9.3.7 </span>Garbage collection</h

</dd>

</dl><!--TOPIC:DOM APIs--><!--POSTMSG--><h3 id=web-messaging><span class=secno>9.4 </span><dfn id=crossDocumentMessages>Cross-document messaging</dfn></h3>
</dl><!--POSTMSG--><h3 id=web-messaging><span class=secno>9.4 </span><dfn id=crossDocumentMessages>Cross-document messaging</dfn></h3>

<p>Web browsers, for security and privacy reasons, prevent documents in different domains from
affecting each other; that is, cross-site scripting is disallowed.</p>
Expand Down
15 changes: 9 additions & 6 deletions index
Expand Up @@ -290,7 +290,7 @@
</script><body onload=init()>
<header class="head with-buttons" id=head><p><a href=//www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 15 May 2014</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 16 May 2014</h2>
</hgroup><div>
<div>
<a href=//whatwg.org/html><span><strong>Multipage Version</strong> <code>whatwg.org/html</code></span></a>
Expand Down Expand Up @@ -1452,7 +1452,7 @@
<!--end-toc-->
<hr><!--
! http://lists.w3.org/Archives/Public/www-archive/2014Apr/0034.html
!--><h2 id=introduction><span class=secno>1 </span>Introduction</h2>
!--><!--CLEANUP--><!-- color => colour in prose --><h2 id=introduction><span class=secno>1 </span>Introduction</h2>


<h3 id=abstract><span class=secno>1.1 </span>Where does this specification fit?</h3>
Expand Down Expand Up @@ -69342,8 +69342,6 @@ dictionary <dfn id=drageventinit>DragEventInit</dfn> : <a href=#mouseeventinit>M



<!--TOPIC:HTML-->

<h2 id=browsers><span class=secno>7 </span>Loading Web pages</h2>

<div class=impl>
Expand Down Expand Up @@ -70126,7 +70124,8 @@ dictionary <dfn id=drageventinit>DragEventInit</dfn> : <a href=#mouseeventinit>M
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>(optional DOMString message = "");
void <a href=#dom-alert title=dom-alert>alert</a>();
void <a href=#dom-alert title=dom-alert>alert</a>(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>();
Expand Down Expand Up @@ -78577,6 +78576,10 @@ scheduleWork(); // queues a task to do lots of work</pre>
to ignore all alerts, and would thus abort at this step whenever the method was
invoked.)</li>

<li><p>If the method was invoked with no arguments, then let <var title="">message</var> be the
empty string; otherwise, let <var title="">message</var> be the method's first
argument.</li>

<li><p>Show the given <var title="">message</var> to the user.</li>

<li><p>Optionally, <a href=#pause>pause</a> while waiting for the user to acknowledge the
Expand Down Expand Up @@ -82316,7 +82319,7 @@ dictionary <dfn id=closeeventinit>CloseEventInit</dfn> : <a href=#eventinit>Even

</dd>

</dl><!--TOPIC:DOM APIs--><!--POSTMSG--><h3 id=web-messaging><span class=secno>9.4 </span><dfn id=crossDocumentMessages>Cross-document messaging</dfn></h3>
</dl><!--POSTMSG--><h3 id=web-messaging><span class=secno>9.4 </span><dfn id=crossDocumentMessages>Cross-document messaging</dfn></h3>

<p>Web browsers, for security and privacy reasons, prevent documents in different domains from
affecting each other; that is, cross-site scripting is disallowed.</p>
Expand Down
13 changes: 8 additions & 5 deletions source
Expand Up @@ -23,6 +23,8 @@

<!--BOILERPLATE middle-internals-->

<!--CLEANUP--><!-- color => colour in prose -->

<h2 id="introduction">Introduction</h2>

<!--END dev-html-->
Expand Down Expand Up @@ -76310,8 +76312,6 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {



<!--TOPIC:HTML-->

<h2 id="browsers">Loading Web pages</h2>

<div class="impl">
Expand Down Expand Up @@ -77203,7 +77203,8 @@ dictionary <dfn>DragEventInit</dfn> : <span>MouseEventInit</span> {
readonly attribute <span>ApplicationCache</span> <span data-x="dom-applicationCache">applicationCache</span>;

// user prompts
void <span data-x="dom-alert">alert</span>(optional DOMString message = "");
void <span data-x="dom-alert">alert</span>();
void <span data-x="dom-alert">alert</span>(DOMString message);
boolean <span data-x="dom-confirm">confirm</span>(optional DOMString message = "");
DOMString? <span data-x="dom-prompt">prompt</span>(optional DOMString message = "", optional DOMString default = "");
void <span data-x="dom-print">print</span>();
Expand Down Expand Up @@ -86935,6 +86936,10 @@ scheduleWork(); // queues a task to do lots of work</pre>
to ignore all alerts, and would thus abort at this step whenever the method was
invoked.)</p></li>

<li><p>If the method was invoked with no arguments, then let <var data-x="">message</var> be the
empty string; otherwise, let <var data-x="">message</var> be the method's first
argument.</p></li>

<li><p>Show the given <var data-x="">message</var> to the user.</p></li>

<li><p>Optionally, <span>pause</span> while waiting for the user to acknowledge the
Expand Down Expand Up @@ -91262,8 +91267,6 @@ dictionary <dfn>CloseEventInit</dfn> : <span>EventInit</span> {



<!--TOPIC:DOM APIs-->

<!--START postmsg--><!--POSTMSG-->

<h3 id="web-messaging"><dfn id="crossDocumentMessages">Cross-document messaging</dfn></h3>
Expand Down

0 comments on commit 0b570cf

Please sign in to comment.