Coverage for event handling
As raised on the saxon-help list, we do not document which types of events Saxon-JS can, and cannot, handle. Currently not all events are handled, but the documentation doesn't include anything about the restrictions.
The event handling coverage should be extended, and the documentation improved.
Martynas's original message:
are there any limitations re. the types of events Saxon-JS can handle? I don't think there is anything in the documentation on this topic.
I'm doing a simple 'onblur' test but cannot get it to work (no effect):
<xsl:template match="input[tokenize(@class, ' ') = 'typeahead']" mode="ixsl:onblur"> <xsl:sequence select="ixsl:call(ixsl:window(), 'alert', [ 'typeahead blur' ])"/> </xsl:template>
Reproducible code: https://github.com/namedgraph/saxon-js2-test/tree/gh-pages
Previously with Saxon-CE I also had to revert to JS with events such as 'onsubmit'.
#1 Updated by Debbie Lockett 16 days ago
HTMLMediaElements, not defined on standard
HTMLElements; so perhaps the usual bubbling is not working. This still needs further investigation.
#2 Updated by Debbie Lockett 9 days ago
See also the discussion on xml.com slack today:
Pieter Lamers reported that
onscroll doesn't work, e.g.
<xsl:template match="*" mode="ixsl:onscroll"> <xsl:message>Scroll event found</xsl:message> </xsl:template>
And Erik Siegel says:
I have never been able to receive an ontoggle event for a
Please register to edit this issue