[ZCM] [ZC] 721/ 3 Resubmit "ZPT escapes attributes when it shouldn't"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Tue Sep 9 10:14:32 EDT 2003


Issue #721 Update (Resubmit) "ZPT escapes attributes when it shouldn't"
 Status Pending, Zope/bug medium
To followup, visit:
  http://collector.zope.org/Zope/721

==============================================================
= 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="&aacute;"></span>
==============================================================




More information about the Zope-Collector-Monitor mailing list