W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2006

[whatwg] toDataURL() and unsupported formats

From: Ian Hickson <ian@hixie.ch>
Date: Fri, 19 May 2006 22:24:13 +0000 (UTC)
Message-ID: <Pine.LNX.4.62.0605192223400.21459@dhalsim.dreamhost.com>
On Sat, 20 May 2006, Anne van Kesteren wrote:
> 
> http://whatwg.org/specs/web-apps/current-work/#todataurl0 defines that 
> for unsupported values UAs must return PNG. How about returning null 
> instead for unsupported types? Where there any reasons to go with 
> something else?

If you want a data: URL, you primarily want a data: URL. The type is 
secondary. Thus getting null is never useful.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Friday, 19 May 2006 15:24:13 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:27 UTC