[html5] r8638 - [e] (0) for compat, apparently alert() should alert '' and alert(undefined) shou [...]
whatwg at whatwg.org
whatwg at whatwg.org
Fri May 16 09:53:57 PDT 2014
Author: ianh
Date: 2014-05-16 09:53:55 -0700 (Fri, 16 May 2014)
New Revision: 8638
Modified:
complete.html
index
source
Log:
[e] (0) for compat, apparently alert() should alert '' and alert(undefined) should alert 'undefined'
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=25686
Affected topics: DOM APIs, HTML, HTML Syntax and Parsing
Modified: complete.html
===================================================================
--- complete.html 2014-05-15 18:40:12 UTC (rev 8637)
+++ complete.html 2014-05-16 16:53:55 UTC (rev 8638)
@@ -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 — Last Updated 15 May 2014</h2>
+ <h2 class="no-num no-toc">Living Standard — 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>
@@ -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>
@@ -69342,8 +69342,6 @@
-<!--TOPIC:HTML-->
-
<h2 id=browsers><span class=secno>7 </span>Loading Web pages</h2>
<div class=impl>
@@ -70126,7 +70124,8 @@
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>();
@@ -78577,6 +78576,10 @@
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
@@ -82316,7 +82319,7 @@
</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>
Modified: index
===================================================================
--- index 2014-05-15 18:40:12 UTC (rev 8637)
+++ index 2014-05-16 16:53:55 UTC (rev 8638)
@@ -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 — Last Updated 15 May 2014</h2>
+ <h2 class="no-num no-toc">Living Standard — 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>
@@ -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>
@@ -69342,8 +69342,6 @@
-<!--TOPIC:HTML-->
-
<h2 id=browsers><span class=secno>7 </span>Loading Web pages</h2>
<div class=impl>
@@ -70126,7 +70124,8 @@
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>();
@@ -78577,6 +78576,10 @@
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
@@ -82316,7 +82319,7 @@
</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>
Modified: source
===================================================================
--- source 2014-05-15 18:40:12 UTC (rev 8637)
+++ source 2014-05-16 16:53:55 UTC (rev 8638)
@@ -23,6 +23,8 @@
<!--BOILERPLATE middle-internals-->
+<!--CLEANUP--><!-- color => colour in prose -->
+
<h2 id="introduction">Introduction</h2>
<!--END dev-html-->
@@ -76310,8 +76312,6 @@
-<!--TOPIC:HTML-->
-
<h2 id="browsers">Loading Web pages</h2>
<div class="impl">
@@ -77203,7 +77203,8 @@
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>();
@@ -86935,6 +86936,10 @@
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
@@ -91262,8 +91267,6 @@
-<!--TOPIC:DOM APIs-->
-
<!--START postmsg--><!--POSTMSG-->
<h3 id="web-messaging"><dfn id="crossDocumentMessages">Cross-document messaging</dfn></h3>
More information about the Commit-Watchers
mailing list