Skip to main content

Bug Tracker

Side navigation

#7713 closed bug (worksforme)

Opened December 06, 2010 08:11PM UTC

Closed December 07, 2010 02:24PM UTC

Last modified May 27, 2011 05:26PM UTC

.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:

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'></a>

While in Chrome it works OK

<a href="" class='link' rel='external'></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'/>

Attachments (0)
Change History (6)

Changed December 06, 2010 08:12PM UTC by anonymous comment:1

p.s. happens on Fedora14 x86

Changed December 07, 2010 03:19AM UTC by jitter comment:2

component: unfiledtemplates
owner: →
status: newpending

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 So that we can investigate this issue further.

Changed December 07, 2010 06:21AM UTC by BorisMoore comment:3

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...

Changed December 07, 2010 02:24PM UTC by rwaldron comment:4

resolution: → worksforme
status: pendingclosed

Following the documentation, I can confirm that this is not a bug in jQuery Templates

Changed May 27, 2011 02:18PM UTC by comment:5

i have this bug on firefox 3.6.17 on Ubuntu 10.04

Template declared as javascript variable

Changed May 27, 2011 05:26PM UTC by BorisMoore comment:6

Bugs for jQuery templates should be declared here:

The issue above is not bug. See the following related issues: