[whatwg] toDataURL() and unsupported formats

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