[Webkit-unassigned] [Bug 204271] New: UIEvents Event Detection Gives False Positives for Drag events
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Nov 15 23:35:47 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=204271
Bug ID: 204271
Summary: UIEvents Event Detection Gives False Positives for
Drag events
Product: WebKit
Version: Safari 12
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: dhtmlkitchen at gmail.com
Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Mobile/15E148 Safari/604.1
https://www.w3.org/TR/uievents/#conf-interactive-ua
"A conforming browser MUST support scripting, declarative interactivity, or some other means of detecting and dispatching events in the manner described by this specification, and MUST support the APIs specified for that event type."
let div = document.createElement("div");
div.setAttribute("ondragstart", ()=>0);
console.log(typeof div.ondragstart);
Result: "function", but objects are not draggable and dragstart event doesn't fire.
Expected result: "function" and objects are draggable. Otherwise, "undefined" and objects are not draggable.
Either support html5 drag'n'drop or make it undetectable. Also the issue is with the `draggable` attribute.
The documentation is incorrect, too:—
NOTE
This technology is supported with Safari 11 in both macOS and iOS.
— No, it is not supported in iOS. At least, not universally on all iOS devices and it doesn't work on iPhone.
https://developer.apple.com/library/archive/documentation/AppleApplications/Conceptual/SafariJSProgTopics/DragAndDrop.html
Scroll down to the bottom of that page, copy'n'paste the example into an html document, save it, start a web server, and access that html document on your phone through your network (a local IP address will do). Turn on mobile debugging in safari on the mac to see the console. (Apple developers found this to be too much work, so put yet another burden onto everyone else.)
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191116/d7c87980/attachment.htm>
More information about the webkit-unassigned
mailing list