Project

Profile

Help

Bug #5572

open

Scroll events in a grid don't bubble up to the document

Added by Norm Tovey-Walsh over 2 years ago. Updated 5 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
2022-06-21
Due date:
% Done:

0%

Estimated time:
Applies to JS Branch:
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

If we don't address the issue of non-bubbling events, we should document this.

Actions #2

Updated by Norm Tovey-Walsh 5 months ago

I don't recall what observation was the impetus behind logging this bug. (Always log a test case, Norm.)

However, in SaxonJS 3.x, it will be possible to register an XSLT function as the event handler for a non-bubbling event. At the moment, this has to be done on the JavaScript side of the fence:

fn = SaxonJS["xsltFunctionMapper"].lookup("Q{http://example.com/ns/mocha/js}has-focus")
document.querySelector("#f1").addEventListener("focus", fn)

It might be possible to make it work entirely from the XSLT side of the fence, but it might be tricky. The function in this case is actually a proper JavaScript function that marshals arguments and return types for the XSLT function.

Please register to edit this issue

Also available in: Atom PDF Tracking page