Re: Handling of undefined in createPattern()

On Tue, 3 Jun 2008, Simon Pieters wrote:
> 
> http://philip.html5.org/tests/canvas/suite/tests/2d.pattern.repeat.undefined.html 
> expects undefined to be stringified to "undefined" in
> 
>    ctx.createPattern(canvas, undefined)
> 
> We recently changed our impl to treat undefined as null since we thought 
> it made sense to treat undefined and null the same.
> 
> It would be good if HTML 5 used WebIDL annotations for how to treat 
> undefined and null for createPattern (and probably other places).

Looks like there's more interop on treating 'undefined' as '"undefined"' 
so that's what I'm leaving it as.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Tuesday, 2 June 2009 07:46:49 UTC