[Webkit-unassigned] [Bug 204487] New: Safari Gives False Positives for draggable property

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Nov 21 19:49:05 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=204487

            Bug ID: 204487
           Summary: Safari Gives False Positives for draggable property
           Product: WebKit
           Version: Safari 12
          Hardware: Unspecified
                OS: iOS 12
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: DOM
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: dhtmlkitchen at gmail.com

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

-- 
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/20191122/04679115/attachment.htm>


More information about the webkit-unassigned mailing list