Bugzilla – Bug 19677
Add <canvas>.supportsContext(DOMString contextId, any... arguments)
Last modified: 2012-11-04 10:43:43 UTC
Web authors need a way to detect whether or not different canvas contexts are supported. Currently authors do this by calling <canvas>.getContext, but this can be very expensive.
Dean proposed adding a supportsContext method in http://lists.w3.org/Archives/Public/public-html/2012Sep/0119.html
Ian added <canvas>.supportsContext in r7482 of the WHATWG spec:
The work to implement <canvas>.supportsContext in WebKit is being tracked in
We should consider pulling this in for HTML5.
Assigning to Silvia since the change has been made on the WHATWG side of things.
See also https://github.com/w3c/html/commit/90c0786311cd92d5a4fd1c546e6a8a766c6d3b2c
staged in https://github.com/w3c/html/compare/master...feature;whatwg_patches_week43_2012
EDITOR'S RESPONSE: This is an Editor's Response to your comment. If
you are satisfied with this response, please change the state of
this bug to CLOSED. If you have additional information and would
like the Editor to reconsider, please reopen this bug. If you would
like to escalate the issue to the full HTML Working Group, please
add the TrackerRequest keyword to this bug, and suggest title and
text for the Tracker Issue; or you may create a Tracker Issue
yourself, if you are able to do so. For more details, see this
Rationale: adopted resolution by WHATWG