W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: [FileAPI] readAsDataURL()

From: Arun Ranganathan <aranganathan@mozilla.com>
Date: Tue, 22 Feb 2011 10:30:40 -0800 (PST)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: David Flanagan <david@davidflanagan.com>, public-webapps@w3.org, Jonas Sicking <jonas@sicking.cc>
Message-ID: <2030574991.405992.1298399440551.JavaMail.root@cm-mail03.mozilla.org>


----- 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 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:43 GMT