W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2010

[whatwg] event.dataTransfer formats

From: Daniel Cheng <dcheng@google.com>
Date: Sat, 23 Jan 2010 11:09:33 -0800
Message-ID: <cdc844f71001231109m3f60f55bt6c7b1f4c1013d7a2@mail.gmail.com>
> 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');



results in an alert saying 'SUCCESS'.

Given that, would it make sense to change the spec to make format strings

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20100123/89a9635f/attachment.htm>
Received on Saturday, 23 January 2010 11:09:33 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:20 UTC