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: 1lukas1@gmail.com Owned by: 1lukas1@gmail.com
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'/>

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: → 1lukas1@gmail.com
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 http://jsfiddle.net. 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

http://jsfiddle.net/rwaldron/yssDf/

Changed May 27, 2011 02:18PM UTC by dmitryklerik@gmail.com 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:

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