a:active vs mousedown event preventDefault()-ed
问题 The case we have an <a> element with :active state specified in CSS in JavaScript code we listen to mousedown event and call event.preventDefault() for some reasons :) As a result: in Firefox when I move mouse cursor over the anchor and click it -- anchor is not displayed as :active I have also tested this issue in some Chrome / Opera / IE versions -- all that browsers had decorated the anchor as if it was :active . Here is a test for the case: http://jsbin.com/azajex/4 The question On W3C