Re: [FileAPI] readAsDataURL()

----- Original Message -----
> On 2/17/11 2:00 PM, Jonas Sicking wrote:
> > I think data-urls are allowed to have no content-type. Just like
> > http
> > requests can return no content-type header.
> 
> A difference is that if HTTP returns no content-type header then the
> type is sniffed, whereas a data: URI with no media-type is treated as
> text/plain. This is specified in RFC 2397 and implemented at least in
> Opera, Gecko, Safari, and Chrome.

OK, this makes sense.  We won't generate an error if the media-type is not present.  Some apps may do some weird things in this case.

I'll make the spec. clearer about this.

-- A*


> 
> -Boris

Received on Tuesday, 22 February 2011 18:31:14 UTC