jQuery selector bug demo

jQuery('#one:not(.test)').css('background-color', '#fcc');

I should have red background!

jQuery('#two:not(div.test)').css('background-color', '#beb');

I should have green background!

jQuery('#three:not(p.test)').css('background-color', '#ccf');

I should have blue background!

jQuery('#three').not('p.test').css('background-color', '#eeb');

I should have yellow background!