[html5] r1215 - /

whatwg at whatwg.org whatwg at whatwg.org
Tue Feb 12 13:07:17 PST 2008


Author: ianh
Date: 2008-02-12 13:07:13 -0800 (Tue, 12 Feb 2008)
New Revision: 1215

Modified:
   index
   source
Log:
[e] (0) oops, extra trailing slash in example

Modified: index
===================================================================
--- index	2008-02-12 21:01:07 UTC (rev 1214)
+++ index	2008-02-12 21:07:13 UTC (rev 1215)
@@ -36596,7 +36596,7 @@
 
    <pre>document.addEventListener('message', receiver, false);
 function receiver(e) {
-  if (e.origin == 'http://example.com/') {
+  if (e.origin == 'http://example.com') {
     if (e.data == 'Hello world') {
       e.source.postMessage('Hello');
     } else {

Modified: source
===================================================================
--- source	2008-02-12 21:01:07 UTC (rev 1214)
+++ source	2008-02-12 21:07:13 UTC (rev 1215)
@@ -33946,12 +33946,13 @@
 o.contentWindow.postMessage('Hello world');</pre>
 
    <p>To register an event handler for incoming events, the script
-   would use <code title="">addEventListener()</code> (or similar mechanisms).
-   For example, the script in document B might look like:</p>
+   would use <code title="">addEventListener()</code> (or similar
+   mechanisms).  For example, the script in document B might look
+   like:</p>
 
    <pre>document.addEventListener('message', receiver, false);
 function receiver(e) {
-  if (e.origin == 'http://example.com/') {
+  if (e.origin == 'http://example.com') {
     if (e.data == 'Hello world') {
       e.source.postMessage('Hello');
     } else {




More information about the Commit-Watchers mailing list