-
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
IE8 blows up on undefined values #753
Comments
Can you create a fiddle demonstrating the issue? |
If i understand right way, here is the fiddle example but i cant test it on IE8 because i dont have one. http://jsfiddle.net/ghtzg/ |
So sorry about this one! It was in fact due to html5 tags rendered and put into the dom, after document load. Everything worked fine with html5shim, handlebars and jQuery, but wrestling some templates by pulling out html with jQuery, then doing some stuff to the str, compiling and calling the template and finally re-inserting into the dom caused the html5 tags to blow up everything. In ie8 the html5shim changes e.g.: var tmplStr = template(data);
tmplStr = tmplStr.replace(/<(\/|.{0}):(.+?)>/ig, '<$1$2>');
tmplStr = tmplStr.replace(/<(\/|.{0}):([^>]+)>/g, '<$1$2>'); So... It was a jQuery/IE8/html5shim thing. Thanks for trying to figure it out and sorry for not doing the fiddle first! |
I haven't tested in IE9+ or IE7-
Everything works fine in newer Safari/Chrome...
Assuming this data:
And a template containing something like this:
What I get is parts of the template in return, it seems extremely random what is removed.
Though any single case will remove the same template code every time.
The text was updated successfully, but these errors were encountered: