[whatwg] toDataURL() and unsupported formats

Ian Hickson ian at hixie.ch
Fri May 19 15:24:13 PDT 2006


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.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list