Permalink
Browse files

Refactored Bug1606 code after review

  • Loading branch information...
1 parent ca629ec commit 3eeb73e992d9b6879d8aee15d88e1a9534099289 @anuragbhatnagar committed Dec 14, 2011
Showing with 4 additions and 11 deletions.
  1. +4 −11 processing.js
View
@@ -56,18 +56,11 @@
}
- /* IE9 Compatibility mode fix */
-
- if (navigator.appName == 'Microsoft Internet Explorer') {
- var vMode = document.documentMode; // get the documentMode if browser is IE
- if (vMode == 9) {
- var doctype = document.doctype;
- if (doctype == "null") { // if browser is IE9, check to make sure the doctype for html 5 is declared, or warn the user/developer
- // alert("Doctype Directive is missing");
- throw("DocType directive is missing. The recommended DocType in IE 9 is the HTML 5 DocType: <!DOCTYPE html>"); }
- }
- }
+ /* IE9+ Compatibility mode fix - Bug 1606*/
+ if (document.documentMode >= 9 && !document.doctype) {
+ p.println("DocType directive is missing. The recommended DocType in IE 9 is the HTML 5 DocType: <!DOCTYPE html>");
+ }
var Float32Array = setupTypedArray("Float32Array", "WebGLFloatArray"),
Int32Array = setupTypedArray("Int32Array", "WebGLIntArray"),

0 comments on commit 3eeb73e

Please sign in to comment.