Re: [FileAPI] readAsDataURL()

On Thu, Feb 17, 2011 at 9:46 AM, Arun Ranganathan
<aranganathan@mozilla.com> wrote:
> David,
>
>>
>> Arun,
>>
>> I'm assuming that you mean for the resulting data:// URL to have a
>> mime
>> type in it, right? But the spec just says to take the "blob's data
>> content" and doesn't say anything about using the type of the blob
>> when
>> creating the URL.
>
> Yes, you're absolutely right, I understand you now!  The steps should specify use of the type property on Blobs.  In fact, sometimes the type may not be available on Blobs.  In this case the specification should go to the error steps, since a valid data: URL cannot be generated.

I think data-urls are allowed to have no content-type. Just like http
requests can return no content-type header.

/ Jonas

Received on Thursday, 17 February 2011 19:02:02 UTC