- From: <bugzilla@jessica.w3.org>
- Date: Sat, 24 Mar 2012 00:12:27 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=16332 Travis Leithead [MSFT] <travil@microsoft.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #2 from Travis Leithead [MSFT] <travil@microsoft.com> 2012-03-24 00:12:24 UTC --- (In reply to comment #0) > Load the following in > http://software.hixie.ch/utilities/js/live-dom-viewer/ to test: > > <!DOCTYPE html> > ...<script> > var e = document.createEvent("Event") > e.initEvent("test", false, true) > document.addEventListener("test", function() { w("invoked") }, false) > e.stopPropagation(); > w("d1: " + document.dispatchEvent(e)) > w("d2: " + document.dispatchEvent(e)) > </script> Consistent in all browsrs but Firefox... > > Similarly, in Opera, WebKit or Gecko the canceled flag does not appear to > be reset. Load the following in the same viewer to test: > > <!DOCTYPE html> > ...<script> > function callback(ev) { > if("defaultPrevented" in ev) > w("ev: " + ev.defaultPrevented) > else > w("ev: " + ev.getPreventDefault()) > } > var e = document.createEvent("Event") > e.initEvent("test", false, true) > document.addEventListener("test", callback, false) > e.preventDefault(); > w("d1: " + document.dispatchEvent(e)) > w("d2: " + document.dispatchEvent(e)) > </script> IE has true/false values flipped, all other browsers are the same. -- Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug.
Received on Saturday, 24 March 2012 00:12:29 UTC