tqtiwvfdn / explorercanvas

Automatically exported from code.google.com/p/explorercanvas
Apache License 2.0
0 stars 0 forks source link

getContext test insufficient for incomplete browsers #134

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Some versions of IE8 provide getContext, but do not support getContext('2d').

Including IE10, in IE8 mode, and AFAIK Vista IE8.

I have fixed this in my local version of excanvas:

if(!document.createElement('canvas').getContext)

Changed To:

var testCanvas = document.createElement('canvas');
if (!testCanvas.getContext || !testCanvas.getContext('2d')) {

Original issue reported on code.google.com by Christop...@gmail.com on 10 Sep 2013 at 9:50