[html5] r853 - /

whatwg at whatwg.org whatwg at whatwg.org
Thu May 31 21:56:49 PDT 2007


Author: ianh
Date: 2007-05-31 21:56:48 -0700 (Thu, 31 May 2007)
New Revision: 853

Modified:
   index
   source
Log:
[] (0) Event handlers only cancel when their return value === false.

Modified: index
===================================================================
--- index	2007-06-01 02:07:46 UTC (rev 852)
+++ index	2007-06-01 04:56:48 UTC (rev 853)
@@ -26569,10 +26569,11 @@
 
   <p>When an event handler attribute is invoked, its argument must be set to
    the <code>Event</code> object of the event in question. If the function
-   returns false, the event's <code>preventDefault()</code> method must then
-   invoked. Exception: for historical reasons, for the HTML
-   <code>mouseover</code> event, the <code>preventDefault()</code> method
-   must be called when the function returns true instead.</p>
+   returns the exact boolean value false, the event's
+   <code>preventDefault()</code> method must then invoked. Exception: for
+   historical reasons, for the HTML <code>mouseover</code> event, the
+   <code>preventDefault()</code> method must be called when the function
+   returns true instead.</p>
   <!-- IE actually uncancels the event if the function returns true -->
 
   <p>When <a href="#scripting1">scripting is disabled</a>, event handler

Modified: source
===================================================================
--- source	2007-06-01 02:07:46 UTC (rev 852)
+++ source	2007-06-01 04:56:48 UTC (rev 853)
@@ -23996,7 +23996,7 @@
 
   <p>When an event handler attribute is invoked, its argument must be
   set to the <code>Event</code> object of the event in question. If
-  the function returns false, the event's
+  the function returns the exact boolean value false, the event's
   <code>preventDefault()</code> method must then invoked. Exception:
   for historical reasons, for the HTML <code>mouseover</code> event,
   the <code>preventDefault()</code> method must be called when the




More information about the Commit-Watchers mailing list