-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Using {{html}} with a string that includes a tag parameter of "tmpl" throws an error #42
Comments
It works for me. Can you provide full repro, e.g. on http://jsfiddle.net/? Is trailer a string of HTML markup or reference to an HTMLElement? Looks like you have created that trailer object by rendering another template? I think you need to show your scenario in a repro for us to be able to determine whether this is a bug. |
trailer is a string. You're right, it looks like it was corrupted by another template. In my backend admin page I have something akin to I'm trying to set up a repro on jsfiddle but no luck so far . . . |
Example on jsfiddle: http://jsfiddle.net/DiegeticShadow/YdWL5/ |
You need For the rest, I'll look at it at some point. (Not able to do so immediately though...). |
Comment received from gordonslondon: i'm having the same problem:
the content of the textarea is now: Is there any workaround ? or maybe i'm missing another thing .. My reply: You need to escape the content of the text area. |
See also #46 Closing |
The error:
Uncaught TypeError: Cannot call method 'push' of undefined
is thrown in Chrome 9 for Windows, or the error:
is null or not an object
is thrown in Internet Explorer 8 for Windows, for the following template:
{{html trailer}}
where trailer equals:
When I add this line of code before trailer gets processed by the template, the error goes away:
trailer = trailer.replace(/tmpl/g, 'null');
The text was updated successfully, but these errors were encountered: