Actions
Bug #1590
closed![Author: Manfred Staudinger](https://www.gravatar.com/avatar/5423ec2a66b53a2a6a5cdb327f0596ea?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Philip Fearon](https://www.gravatar.com/avatar/dd3c76e6c50a14203d6d7d6b989425fc?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Event processing, preventDefault
Start date:
2012-07-18
Due date:
% Done:
100%
Estimated time:
Platforms:
Description
I have an anchor like this
<a id="Index_Q" href="Index_de_Q.html" onclick="toggleInto(event, 'Index_Q_div')">Q</a>
<xsl:template match="html:a" mode="ixsl:onclick">
<xsl:message select="'onclick', name(.), @id"/>
<xsl:message select="'cancelable', ixsl:get(ixsl:event(), 'cancelable')"/>
<xsl:variable name="t" select="ixsl:call(ixsl:event(), 'preventDefault')" as="item()*"/>
<xsl:message select="'preventDefault', $t"/>
</xsl:template>
INFO: onclick a Index_Q
INFO: cancelable true
INFO: preventDefault
While the first and second message produce what I expected, the ixsl:call does not: $t is empty and toggleInto still gets invoked.
Did I miss something trivial?
Please register to edit this issue
Actions