A
Asen Bozhilov
How you check client browser for support of canvas element from HTML5.
Here i don't want to check user agent or creating dummy canvas element
or anything else in this styling.
In code.google i found one `object' canvas_support:
<URL:http://code.google.com/p/browser-canvas-support/wiki/
BrowserCanvasSupport>
I don't like this. In HTML5 working draft is defined DOM Interface
`HTMLCanvasElement', who's associated with global execution context.
After that:
var Canvas = {
isSupported : Boolean(this.HTMLCanvasElement)
}
How you thinking about check for canvas supported?
Thanks for responses.
Here i don't want to check user agent or creating dummy canvas element
or anything else in this styling.
In code.google i found one `object' canvas_support:
<URL:http://code.google.com/p/browser-canvas-support/wiki/
BrowserCanvasSupport>
I don't like this. In HTML5 working draft is defined DOM Interface
`HTMLCanvasElement', who's associated with global execution context.
After that:
var Canvas = {
isSupported : Boolean(this.HTMLCanvasElement)
}
How you thinking about check for canvas supported?
Thanks for responses.