[ZCM] [ZC] 721/ 5 Comment "ZPT escapes attributes when it shouldn't"
Collector: Zope Bugs, Features,
and Patches ...
zope-coders-admin at zope.org
Wed Oct 1 13:31:42 EDT 2003
Issue #721 Update (Comment) "ZPT escapes attributes when it shouldn't"
Status Pending, Zope/bug medium
To followup, visit:
http://collector.zope.org/Zope/721
==============================================================
= Comment - Entry #5 by evan on Oct 1, 2003 1:31 pm
This *should* be fixed now in the CVS trunk and 2.7 branch. Interested parties please test and comment.
________________________________________
= Edit - Entry #4 by ctheune on Sep 19, 2003 7:15 am
Changes: edited transcript, revised version_info
________________________________________
= Resubmit - Entry #3 by ctheune on Sep 9, 2003 9:14 am
Status: Resolved => Pending
I currently discovered this behaviour on a HEAD checkout from 2003/07/14.
Is it possible this bug slipped in again? Also in XML mode i discovered that the attributes are presented after character reference substitution (happens only in the attributes, not the rest of the document).
So this happens to an attribute "string:ä":
Macro-Expansion On | Macro-Expansion Off
XML-Mode "string:ä" | "string:ä":
HTML-Mode "string:ä" | "string:ä":
I tried to locate it further. It happens somewhere in the
interpret() method from the TALInterpreter.
________________________________________
= Resolve - Entry #2 by evan on Dec 16, 2002 5:55 pm
Status: Pending => Resolved
Fixed in CVS trunk by not escaping ampersands in attributes that start off a syntactically valid character entity. Note that this includes semantic nonsense such as "&blah;" and "�" as well as valid entities such as "á" and "d".
________________________________________
= Request - Entry #1 by Anonymous User on Dec 12, 2002 6:22 am
ZPT escapes the ampersand of character entities
in attributes. They should not be escaped since
they are legal HTML and needed to make accented
characters, for example in <img alt="">
To check this, put the following line in a Template
and view the result.
<span alt="á"></span>
==============================================================
More information about the Zope-Collector-Monitor
mailing list