jQuery wrapper fails on IE8 (.trim() issue) #268

purtuga opened this Issue Oct 19, 2012 · 0 comments


None yet

2 participants


Using the jquery wrapper fails in IE8. The issue is this line:

var template = $(elm).html().trim();

.trim() fails because it looks like the returned object (String) does not have a trim method under IE8.
I created the following test case in jsFiddler: http://jsfiddle.net/MzgBm/3/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment