jquery-tmpl icon indicating copy to clipboard operation
jquery-tmpl copied to clipboard

XHTML content fails in Firefox or IE

Open jaraco opened this issue 14 years ago • 2 comments

I took the simple example from the docs and attempted to load it as an XHTML file, but it fails to work in Firefox (it renders nothing because the template itself is empty). I found I could work around this issue by wrapping the template content in a construct, but then the content fails on IE.

To reproduce this issue, I've created this script for IE and this script for FF. They're both proper XHTML files based off of the example in the docs, but one works in IE and the other works in FF. If you load the FF script in IE, the tags are rendered as text. If you load the IE script in FF, nothing is rendered.

Ideally, there should be a way to create templates in an XHTML file.

jaraco avatar May 10 '11 14:05 jaraco

Could you work around this by working with the template as a string instead of using the <script> method?

chadwhitacre avatar Jun 14 '11 14:06 chadwhitacre

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.

rdworth avatar Oct 08 '11 06:10 rdworth