jquery/sizzle — pull request #115 by Yaffle (2012-07-05 16:55:43+00:00)
Title: perf

var div = document.createElement('div');
var wrongSelector = '.null>u u u u code';
var s = '' + Array(40).join('

') + Array(128).join('

') + '123' + Array(40).join('

') + '';
div.innerHTML = s;
var code = div.querySelector('code');

jQuery.find.matchesSelector(code, wrongSelector);

this change should improve worst cases for jquery from this test:
http://jsperf.com/nwmatches-vs-modified-nwmatcher/12