W3C home > Mailing lists > Public > public-html@w3.org > June 2009

Re: Handling of undefined in createPattern()

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 2 Jun 2009 07:46:14 +0000 (UTC)
To: Simon Pieters <simonp@opera.com>
Cc: "public-html@w3.org" <public-html@w3.org>
Message-ID: <Pine.LNX.4.62.0906020745540.11443@hixie.dreamhostps.com>
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

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:04 UTC