function test() { var tainted = document.location.search $(tainted); // NOT OK $("body", tainted); // OK $("." + tainted); // OK $("