tal:attributes and semicolon - bug or "feature"?
This works: <a tal:attributes="href python:'javascript:alert(\'hi\')'">hi</a> This doesn't: <a tal:attributes="href python:'javascript:alert(\'hi;\')'">hi</a> It looks like tal:attributes may be reading the semicolon as the end of the definition, event though it's in a python string. Is there any explanation other than 'bug'?
Mark Gibson wrote:
This works: <a tal:attributes="href python:'javascript:alert(\'hi\')'">hi</a>
This doesn't: <a tal:attributes="href python:'javascript:alert(\'hi;\')'">hi</a>
sure smells like a bug to me -- Jamie Heilman http://audible.transient.net/~jamie/ "We must be born with an intuition of mortality. Before we know the words for it, before we know there are words, out we come bloodied and squalling with the knowledge that for all the compasses in the world, there's only one direction, and time is its only measure." -Rosencrantz
A literal semicolon in a TALES expression typically needs to be expressed as ';;' Does this work? <a tal:attributes="href python:'javascript:alert(\'hi;;\')'">hi</a> On Fri, 2003-05-30 at 16:22, Jamie Heilman wrote:
Mark Gibson wrote:
This works: <a tal:attributes="href python:'javascript:alert(\'hi\')'">hi</a>
This doesn't: <a tal:attributes="href python:'javascript:alert(\'hi;\')'">hi</a>
sure smells like a bug to me
-- Jamie Heilman http://audible.transient.net/~jamie/ "We must be born with an intuition of mortality. Before we know the words for it, before we know there are words, out we come bloodied and squalling with the knowledge that for all the compasses in the world, there's only one direction, and time is its only measure." -Rosencrantz
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Chris McDonough wrote:
A literal semicolon in a TALES expression typically needs to be expressed as ';;'
Does this work?
indeed it does -- Jamie Heilman http://audible.transient.net/~jamie/ "I was in love once -- a Sinclair ZX-81. People said, "No, Holly, she's not for you." She was cheap, she was stupid and she wouldn't load -- well, not for me, anyway." -Holly
That works. Thanks! Mark Chris McDonough wrote:
A literal semicolon in a TALES expression typically needs to be expressed as ';;'
Does this work?
<a tal:attributes="href python:'javascript:alert(\'hi;;\')'">hi</a>
On Fri, 2003-05-30 at 16:22, Jamie Heilman wrote:
participants (3)
-
Chris McDonough -
Jamie Heilman -
Mark Gibson