Skip to content
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

Cannot render HTML #139

Open
tyson-benson opened this issue Aug 24, 2011 · 3 comments
Open

Cannot render HTML #139

tyson-benson opened this issue Aug 24, 2011 · 3 comments

Comments

@tyson-benson
Copy link

I cannot seem to render HTML from my templates using the {{html value}} token. I have run google chrome dev tools to show me the line of code where i am receiving an exception. On line 493 of jquery.tmpl.js: pntItem.nodes comes up as undefined. When tmplItem is assigned to pntItem on line 486, pntItem does not become an exact copy of tmplItem. As can be seen in this screenshot (see the watch expressions to the right).

http://screencast.com/t/QBDZgieVOa

I dont get the error if I use ${value} instead, but i do end up printing the html as text in the page, which is undesirable.

@tyson-benson
Copy link
Author

Let me know if you need any more information if it will help you reproduce this error.

@BorisMoore
Copy link
Owner

I'd need to have a small test case on jsfiddle showing the problem. Did you look at the samples using {{html}}? -https://github.com/jquery/jquery-tmpl/blob/master/demos/step-by-step/0_tmpl-read-only/2_html-tag.html

@rdworth
Copy link
Contributor

rdworth commented Oct 8, 2011

Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants