[whatwg] event.dataTransfer formats
Daniel Cheng
dcheng at google.com
Sat Jan 23 11:09:33 PST 2010
>
> Formats are generally given by MIME types, with some values special-cased
> for legacy reasons. For the purposes of this API, however, the format
> strings are opaque, case-sensitive, strings, and the empty string is a valid
> format string.
RFC 2616 has this to say about MIME types:
> The type, subtype, and parameter attribute names are case-insensitive.
IE also ignores case for format strings:
> <script>
window.clipboardData.setData('Text', 'FAILURE');
window.clipboardData.setData('tEXT', 'SUCCESS');
alert(window.clipboardData.getData('Text'));
</script>
results in an alert saying 'SUCCESS'.
Given that, would it make sense to change the spec to make format strings
case-insensitive?
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100123/89a9635f/attachment-0001.htm>
More information about the whatwg
mailing list