Issue 2 in google-jstemplate: jsvalues cannot contain ';' even inside strings

4 views
Skip to first unread message

codesite...@google.com

unread,
Sep 30, 2008, 5:23:06 PM9/30/08
to google-j...@googlegroups.com
Issue 2: jsvalues cannot contain ';' even inside strings
http://code.google.com/p/google-jstemplate/issues/detail?id=2

New issue report by corydodt:
What steps will reproduce the problem?
1. Construct a template using something like <span id="template"
jsvalues="$options:'a;b;c'.split(';')"><span jsselect="$options"
jscontent="$this" /></span>
2. call jstProcess(new JsEvalContext({}),
document.getElementById('template'))

You should get a stack of three spans <span>a</span>...b...c...

Instead, this template is not processed because the expression dies at ';',
and what's left is a syntax error. I assume this is because the expression
is split with ';' with no regard to string boundaries.

I'm using svn r9, FF3/Ubuntu8.04.

I am working around this by using '|' instead. I can imagine a scenario in
which this workaround would not be practical, though.

Issue attributes:
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

Reply all
Reply to author
Forward
0 new messages