Skip to content
Permalink
Browse files

[e] (0) for compat, apparently alert() should alert '' and alert(unde…

…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 0b570cf14d1ac33d7e7854114342ebd8c8ea624f
Showing with 26 additions and 17 deletions.
  1. +9 −6 complete.html
  2. +9 −6 index
  3. +8 −5 source
</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>
<!--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>



<!--TOPIC:HTML-->

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

<div class=impl>
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>();
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

</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>
15 index
</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>
<!--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>



<!--TOPIC:HTML-->

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

<div class=impl>
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>();
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

</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>
13 source

<!--BOILERPLATE middle-internals-->

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

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

<!--END dev-html-->



<!--TOPIC:HTML-->

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

<div class="impl">
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>();
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



<!--TOPIC:DOM APIs-->

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

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

0 comments on commit 0b570cf

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