[ZPT] new parser bug in 1.4 (tal:on-error mangles attributes) !

Evan Simpson evan@zope.com
Tue, 02 Oct 2001 13:28:38 -0400


AJDENSTONE@BKB.com wrote:

> 	I have the same problem in the same situations and only in ZPT 1.4.=20
>=20
> -----Original Message-----
> From: Geir B=E6kholt [mailto:geirh@funcom.com]=20
> <div class=3D"topStory" tal:on-error=3D"nothing"></div>
>=20
> somehow becomes
>=20
> <div class=3D"class=3D&quot;topStory&quot;" tal:on-error=3D"nothing"></=
div>

This is now fixed in CVS.  It's an easy fix; Change line 519 of=20
TAL/TALGenerator.py from:

            self.emitStartTag(name, attrlist)

to:
             self.emitStartTag(name, list(attrlist)) # Must copy attrlist=
!

Cheers,

Evan @ Zope