[Webkit-unassigned] [Bug 135628] New: TouchEvent listeners do not trigger from nodes created from different document
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 5 16:42:52 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=135628
Summary: TouchEvent listeners do not trigger from nodes created
from different document
Product: WebKit
Version: 528+ (Nightly build)
Platform: iOS
OS/Version: iOS 7.0
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Events
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: dfreedm at google.com
If a node is created in a document that is not the main document (document.implementation.createHTMLDocument), has touch event listeners added, and then is added to the main document, those listeners do not trigger from touches.
The event listeners show up in the inspector, but the handler function is not called.
A synthetic event of the same name (touchstart, touchmove, touchend), will trigger the listener, as expected.
If the event listeners are added after the node is imported into the main document, then the listeners trigger as expected.
However, if a global touch listener is added, say to document.body, then the event listeners on the imported nodes trigger correctly.
This scenario is encountered when using a polyfill for <template>, and with native <template> in iOS 7 and iOS 8 respectively.
In addition, only touch listeners are affected by this, mouse listeners on the same nodes with trigger as expected.
Attached is a minimized repro case.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list