- From: Robin Berjon <robin@w3.org>
- Date: Tue, 11 Sep 2012 10:40:32 +0200
- To: Dean Jackson <dino@apple.com>
- CC: public-html@w3.org
Hi Dean,
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.
--
Robin Berjon - http://berjon.com/ - @robinberjon
Received on Tuesday, 11 September 2012 08:40:36 UTC