[ZCM] [ZC] 1387/ 3 Comment "tal:replace + i18n:name = implied
'structure'"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Sat Jun 26 08:36:18 EDT 2004
Issue #1387 Update (Comment) "tal:replace + i18n:name = implied 'structure'"
Status Pending, Zope/bug low
To followup, visit:
http://zope.org/Collectors/Zope/1387
==============================================================
= Comment - Entry #3 by gintautasm on Jun 26, 2004 8:36 am
Oops, I filed this bug in the wrong collector. I don't know if it's an issue with Zope2 as well, but I haven't tested that, so I would assume it is not.
Please reject this bug, and sorry for the hassle.
________________________________________
= Comment - Entry #2 by gintautasm on Jun 25, 2004 4:31 pm
There's a typo in the second 'cat' command: 'ouput' should be changed to 'output'.
And I forgot to mention that this bug might be somewhat related to http://zope.org/Collectors/Zope/1103 .
________________________________________
= 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