Re: [Saxon-JS 2] Types of events Saxon-JS cannot handle?
Martin Honnen <[email protected]> Wed, 9 Sep 2020 14:25:32 +0200
| Newsgroups | gmane.text.xml.saxon.help |
|---|---|
| Message-ID | <[email protected]> |
Am 09.09.2020 um 11:42 schrieb Martynas Jusevičius: > 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> The modern browsers also support a focusout event, I suspect that mode="ixsl:onfocusout" works in Saxon JS as it is propagated to the document. I haven't tested though. And throwing up an alert dialog in an event handler for sure is no good way to debug such events as it blurs in any case. But that is probably not the cause of the problem. Try the ixsl:onfocusout instead of ixsl:onblur _______________________________________________ saxon-help mailing list archived at http://saxon.markmail.org/ [email protected] https://lists.sourceforge.net/lists/listinfo/saxon-help