I just upgraded to 1.9.1 After some technical defiificulties all work except:
var $newthumbs = $(' <div id=\"car-7\" class=\"thumbnail_car thumbnail span2\" data-sorting-top=\"2\" data-sorting-date=\"2013-01-12 16:47:31 UTC\"></div>');
If I put this line in the console of jquery 1.8.3 it gets accepted and I can retrieve it with $newthumbs
in 1.9.1 it fails with Error: Syntax error, unrecognized expression:
I've read the changelog and I don't see anything relating that should break this. I may not know a lot of jquery, but this type of syntax looks standard.
What changed?
Update
I did find this here
HTML strings with leading whitespace: jQuery 1.9 restricts the strings processed by $() for security reasons. Although we recommend you use $.parseHTML() to process arbitrary HTML like templates, the 1.1.0 version of the Migrate plugin restores the old behavior.
$.trim()
is your friend. – Bemis