Handling of undefined in createPattern()

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).

-- 
Simon Pieters
Opera Software

Received on Tuesday, 3 June 2008 16:15:29 UTC