Skip to content
Browse files

Added check for IE9+ quirks mode [#1606]

  • Loading branch information...
1 parent 7bd8187 commit 3150187ed0d8d2791540f74adf263e516c1c2c8a @anuragbhatnagar anuragbhatnagar committed with jbuck Oct 27, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 processing.js
View
5 processing.js
@@ -55,6 +55,11 @@
};
}
+ /* IE9+ quirks mode check - ticket #1606 */
+ if (document.documentMode >= 9 && !document.doctype) {
+ throw("The doctype directive is missing. The recommended doctype in Internet Explorer is the HTML5 doctype: <!DOCTYPE html>");
+ }
+
var Float32Array = setupTypedArray("Float32Array", "WebGLFloatArray"),
Int32Array = setupTypedArray("Int32Array", "WebGLIntArray"),
Uint16Array = setupTypedArray("Uint16Array", "WebGLUnsignedShortArray"),

0 comments on commit 3150187

Please sign in to comment.
Something went wrong with that request. Please try again.