Project

Profile

Help

Bug #1590

closed

Event processing, preventDefault

Added by Manfred Staudinger over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Sprint/Milestone:
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

Also available in: Atom PDF