W3C home > Mailing lists > Public > public-html@w3.org > September 2012

Re: [Canvas] proposal for supportsContext

From: Dean Jackson <dino@apple.com>
Date: Tue, 11 Sep 2012 09:14:52 -0700
Cc: public-html@w3.org
Message-id: <B6108B0A-557A-4BA7-91CF-F3DE51C51D4C@apple.com>
To: Robin Berjon <robin@w3.org>

On Sep 11, 2012, at 1:40 AM, Robin Berjon <robin@w3.org> wrote:

> On 10/09/2012 20:11 , Dean Jackson wrote:
>> I propose adding a new method to HTMLCanvasElement:
>> 
>> interface HTMLCanvasElement : HTMLElement {
>>   boolean supportsContext(DOMString contextId, any... arguments);
>> };
>> 
>> supportsContext takes the same parameters as getContext, and simply returns
>> true if the corresponding call to getContext would have returned a valid
>> context, false otherwise.
> 
> I like it. My only concern is about why this would work when hasFeature() failed so miserably. I guess that it covers a sufficiently limited set that it will be done right.

There has been some discussion on the whatwg list (where I copied my email). Some positive, some negative.

Dean
Received on Tuesday, 11 September 2012 16:15:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 September 2012 16:15:20 GMT