[ZPT] new parser bug in 1.4 (tal:on-error mangles attributes)
!
AJDENSTONE@BKB.com
AJDENSTONE@BKB.com
Fri, 28 Sep 2001 21:57:25 -0300
Hi,
I have the same problem in the same situations and only in ZPT 1.4.=20
[]s
Alexandre Denstone
-----Original Message-----
From: Geir B=E6kholt [mailto:geirh@funcom.com]=20
Sent: ter=E7a-feira, 11 de setembro de 2001 08:16
To: zpt@zope.org
Subject: [ZPT] new parser bug in 1.4 (tal:on-error mangles attributes)!
seems like tal:on-error somehow mangles class=3D"xx" declarations in =
HTML-tags
in ZPT1.4..
<div class=3D"topStory" tal:on-error=3D"nothing"></div>
somehow becomes
<div class=3D"class=3D"topStory"" =
tal:on-error=3D"nothing"></div>
when saving.
Only happens when expand-macros while editing is checked (i thought =
that bit
only concerned METAL) , and it only , as far as i can see, happens to
'class' attributes.
tested a bit , and couldnt find it happening with any other =
tal-statement,
or any other HTML-attribute..
it does not seem to matter what is in the on-error , except if left =
empty ,
like this: tal:on-error=3D"" .. Then it leaves the html alone..
Yep , i tested this in an empty template as well, just to make sure =
nothing
else interfered..
Didn't happen in 1.3. - Anyone seeen anything like it ?
--=20
Geir B=E6kholt web-developer/zopatista
geirh@funcom.com funcom oslo | webdev-team
<!-- PGPid : 0x90B47B20 -->
_______________________________________________
ZPT mailing list
ZPT@zope.org
http://lists.zope.org/mailman/listinfo/zpt