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

Handling of undefined in createPattern()

From: Simon Pieters <simonp@opera.com>
Date: Tue, 03 Jun 2008 18:14:46 +0200
To: "public-html@w3.org" <public-html@w3.org>
Message-ID: <op.ub6kqwejidj3kv@zcorpandell.linkoping.osa>

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

This archive was generated by hypermail 2.3.1 : Thursday, 29 October 2015 10:15:34 UTC