Test case for jQuery Ticket 6428
escaped attribute values fail in non qSA-browser if a element node based query is done
by jitter
HTML
<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<script> document.querySelectorAll = null; </script>
<script src="//code.jquery.com/jquery-git.js"> </script>
<p>qSA is disabled in this test for all browsers</p>
<!-- me being to lazy to fire up old browsers for stuff like this -->
<div id='one'>
<input type="text" name="a]b" />
</div>
<a href="somewhere.html" test:ajax="json">test</a>
JavaScript
/*
console.log($("input").length);
console.log($("#one input").length);
console.log( $("#one").find("input").length );
console.log($("input[type='text']").length);
console.log($("#one input[type='text']").length);
console.log( $("#one").find("input[type='text']").length );
*/
$(function() {
console.log($("input[name='a]b']").length);
console.log($("#one input[name='a]b']").length);
console.log($("#one").find("input[name='a]b']").length);
console.log($("input[name='a\\]b']").length);
console.log($("#one input[name='a\\]b']").length); // <-- fails in browsers with no qSA
console.log($("#one").find("input[name='a\\]b']").length); // <-- fails in browsers with no qSA
console.log($("input[name=a\\]b]").length);
console.log($("#one input[name=a\\]b]").length); // <-- fails in browsers with no qSA
console.log($("#one").find("input[name=a\\]b]").length); // <-- fails in browsers with no qSA
//test case for #3729
console.log($("body a[test\\:ajax]").length);
})