#7713 closed bug (worksforme)
.template parameters not evaluated in firefox
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | 1.6 |
Component: | templates | Version: | 1.4.4 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Take an example part of the template <a href="${www}" class='link' rel='external'>${www}</a>
In FF 3.6.12 it renders as (href part is not replaced with actual link)
<a href="$%7Bwww%7D" class='link' rel='external'>some.site.com</a>
While in Chrome it works OK
<a href="some.site.com" class='link' rel='external'>some.site.com</a>
However in similar situation (where template var is tag parameter) works OK in both browsers:
<input name='title' id='title' value='${title}'/>
<input name='title' id='title' value='Some title'/>
Change History (6)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Component: | unfiled → templates |
---|---|
Owner: | set to [email protected]… |
Status: | new → pending |
Thanks for taking the time to contribute to the jQuery project by writing a bug report.
Please submit a reduced test case, which reproduces the issue you are experiencing, on http://jsfiddle.net. So that we can investigate this issue further.
comment:3 Changed 12 years ago by
Is the template declared in a script block? If the template is being taken as innerHTML from a HTML element (e.g. div) not a script block, then there can be issues for anchor tags due to different browser serialization behavior. If so, can you try again with the template wrapped in a script block, per the best practice... Thanks...
comment:4 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | pending → closed |
Following the documentation, I can confirm that this is not a bug in jQuery Templates
comment:6 Changed 12 years ago by
i have this bug on firefox 3.6.17 on Ubuntu 10.04
Template declared as javascript variable
comment:7 Changed 12 years ago by
Bugs for jQuery templates should be declared here: https://github.com/jquery/jquery-tmpl/issues
The issue above is not bug. See the following related issues: https://github.com/jquery/jquery-tmpl/issues/5 https://github.com/jquery/jquery-tmpl/pull/31
p.s. happens on Fedora14 x86