WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
204487
Safari Gives False Positives for draggable property
https://bugs.webkit.org/show_bug.cgi?id=204487
Summary
Safari Gives False Positives for draggable property
dhtmlkitchen@gmail.com
Reported
2019-11-21 19:49:05 PST
Safari returns true for `draggable` DOM property. ``` isDraggableSupported = (()=> { const div = document.createElement("div"); div.setAttribute("draggable", "true"); return div.draggable === true; })(); ``` Result: true. Expected result: false According to the HTML5 specification, "The draggable property returns true if the element is draggable; otherwise, it returns false."
https://html.spec.whatwg.org/dev/dnd.html#the-draggable-attribute
In Safari iOS elements are not draggable, so the draggable property must always be false. See also
https://bugs.webkit.org/show_bug.cgi?id=204271
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-11-22 11:52:55 PST
<
rdar://problem/57436196
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug