Continuous button
by atotic
HTML
<p>Clicking on the button, and holding the mouse button down will trigger the bug. See console for error log.</p>
<pre> el.is(':active') == $('*:active').filter(el).length > 0;
</pre>
should always be true.
<button id='b'>Click me for bug</button>
JavaScript
function testActive(el) {
var isActive = el.is(':active');
var isActiveByFilter = $('*:active').filter(el).length > 0;
if (isActive != isActiveByFilter)
$('body').append("<p>is(:active) reported state incorrectly</p>");
}
var el = $('#b');
window.setInterval(function() { testActive(el)}, 100);