-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when used with jQuery 1.9 #416
Comments
I have the same issue. |
So a little Googling around and I found this: Seems like it has nothing to do with Handlebars, but how jQuery parses template HTML in 1.9. I found that URL from this issue: http://stackoverflow.com/questions/14347611/jquery-1-9-client-side-template-syntax-error-unrecognized-expression Hope that helps |
Thanks for the stackoverflow link. After reading the discussion, I decided to work around this problem by trimming leading white space from the template's output. I changed this...
to this...
While it might be nice for Handlebars to trim things automatically, that seems like it could have some unintended consequences. |
I agree, I had to trim my template as well, however IE 9 didn't like the |
Just ran into the same issue. Trimming the HTML text generated by Handlebars does the trick. |
It's worth considering whether Handlebars should trim its output to begin with. |
Thanks! came to the same conclusion and also blamed jquery :) |
Having the same issue here. While @xmen4u has a point, maybe a global flag would do the trick. |
Thank you for that solution. |
Closing this issue so we can consolidate whitespace handling issues on #336 |
Update for anyone who also ran into this... jQuery reverted their 1.9 HTML processing restrictions in v 1.10:
Simply upgraded to the latest version of jQuery. |
When used with jQuery 1.9 I get this error:
"Uncaught Error: Syntax error, unrecognized expression: <div class="..."
Example: http://pastebin.com/kef1D8bH
The text was updated successfully, but these errors were encountered: