As per RFC 2483 (http://www.rfc-editor.org./rfc/rfc2483.txt, page 11), text/* formats in general should have their lines separated with a CR-LF pair. The current implementation for dataTransfer.getData('text/uri-list') however uses LF only.
Created attachment 47994 [details] patch - change output of getData('text/uri-list') to use CR-LF Patch changing the output from using just LF as line breaks to CR-LF, as per RFC 2483.
(In reply to comment #1) > Created an attachment (id=47994) [details] > patch - change output of getData('text/uri-list') to use CR-LF > > Patch changing the output from using just LF as line breaks to CR-LF, as per > RFC 2483. Have you tested this for compatibility with other UAs?
The FireFox documentation only mentions LF as line separators, e.g., in https://developer.mozilla.org/En/DragDrop/Drag_Operations#Performing_a_Drop , but the implementation seems to be fine with CRLF in setData("text/uri-list") followed by getData("URL"). FF also doesn't seem to generate URLs from files. I guess it'd be best if the UA handles both types of line endings, but still having a confusion here is far from ideal. Not sure what the best approach is. I have raised this (and other) question on the whatwg mailing list.
Comment on attachment 47994 [details] patch - change output of getData('text/uri-list') to use CR-LF It seems like we should wait to hear back from the whatwg before changing this behavior? Clearing r? for now, feel free to re-set it at any time.