Open Bug 669004 Opened 10 years ago Updated 7 years ago

dataTransfer.getData() doesn't properly alias "text" and "url"

Categories

(Core :: DOM: Drag & Drop, defect)

defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: webkit, Unassigned)

References

Details

(Keywords: html5)

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1
Build ID: 20110413222027

Steps to reproduce:

Trying to use dataTransfer.getData() in a cross-browser way.


Actual results:

When dragging a link onto a drop target, calling event.dataTransfer.getData("url") returned an empty string. event.dataTransfer.getData("text/uri-list") and event.dataTransfer.getData("text/plain") both work.


Expected results:

In IE, Chrome, and Safari, calling event.dataTransfer.getData("url") returns the URL, I expected the same. "url" should be aliased to "text/uri-list" and "text" should be aliased to "text/plain". N
Component: General → Drag and Drop
Keywords: html5
OS: Other → All
Product: Firefox → Core
QA Contact: general → drag-drop
Version: 5 Branch → Trunk
This is likely caused by bug 662173, as an older spec assumed uppercase for the 'URL' type.
Depends on: 662173
You need to log in before you can comment on or make changes to this bug.