I have a strange problem !
On a div element i listen a mousedown, mouseup, and click event.
But on firefox, the click event never work ! On Chromium or Trident ( wow ) it work perfectly. If the element is a button it work, but not on a div.
<div>click me</div>
<script>
var div = document.querySelector('div');
function fn(e)
{
if(e.target === div)
div.innerHTML = 'event ' + e.type;
}
// work
div.addEventListener('mousedown',fn);
// work
div.addEventListener('mouseup',fn);
// nop !
div.addEventListener('click',fn);
// nothing !
document.addEventListener('click',fn,true);
</script>