[ZCM] [ZC] 1387/ 1 Request "tal:replace + i18n:name = implied
'structure'"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Fri Jun 25 16:29:47 EDT 2004
Issue #1387 Update (Request) "tal:replace + i18n:name = implied 'structure'"
Status Pending, Zope/bug low
To followup, visit:
http://zope.org/Collectors/Zope/1387
==============================================================
= Request - Entry #1 by gintautasm on Jun 25, 2004 4:29 pm
When tal:replace is used together with i18n:name, special characters (<, >, etc.) in tal:replace are not escaped as if 'structure' was specified.
How to reproduce (paste this into the shell):
cat > src/zope/tal/tests/input/test36.html << "EOF"
<span tal:replace="string:<foo>" />
<span i18n:translate="">
<span tal:replace="string:<foo>" i18n:name="name1" />
<span tal:replace="structure string:<bar />" i18n:name="name2" />
</span>
EOF
cat > src/zope/tal/tests/ouput/test36.html << "EOF"
<foo>
<span><foo> <bar /></span>
EOF
./test.py zope.tal
The added test fails:
< <span><foo> <bar /></span>
---
> <span><foo> <bar /></span>
I've tried to look around for possible causes of the bug but couldn't even find where 'structure' is handled :(
If you fix the bug, please make sure to 'svn add' the new test as well.
==============================================================
More information about the Zope-Collector-Monitor
mailing list