[Bug 16336] defaultPrevented and preventDefault() conflict

https://www.w3.org/Bugs/Public/show_bug.cgi?id=16336

Travis Leithead [MSFT] <travil@microsoft.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ojan@chromium.org

--- Comment #1 from Travis Leithead [MSFT] <travil@microsoft.com> 2012-03-12 21:10:23 UTC ---
[see http://lists.w3.org/Archives/Public/www-dom/2011JanMar/0077.html]

This seems to match the WebKit behavior as well.

Test case I used to verify:
<input id=foo>
<script>
var foo = document.getElementById('foo');
foo.addEventListener('click', function(e)
{e.preventDefault();alert(e.defaultPrevented)});
foo.addEventListener('blur', function(e)
{e.preventDefault();alert(e.defaultPrevented)});
</script>

This approach makes more sense to me since it gives more information to web
developers.

Ojan

-- 
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 Monday, 12 March 2012 21:10:26 UTC