v1.12.0

JSXGraph and IE8

Posted on March 20, 2009 by Alfred Wassermann

Yesterday, Internet Explorer 8 was released. Unfortunately, displaying JSXGraph with IE 8 fails, if IE 8 runs in strict mode and the HTML file starts with DOCTYPE. Meanwhile, the problem has been localized: Up to IE7 the VML rendering engine is initialized with the commands

1
2
document.namespaces.add("v", "urn:schemas-microsoft-com:vml");
document.createStyleSheet().addRule("v\\:*", "behavior: url(#default#VML);");

In IE8, the wildcard

1
...addRule("v\\:*", ...

is not longer allowed. Here is an example. There are some solutions proposed by several groups, among them people from Microsoft.

does not throw an error, but the dynamically constructed elements are not displayed correctly.

which also did not help.

The quick and dirty workaround for MediaWiki or WordPress is to include

1
<meta http-equiv="X-UA-Compatible" content="IE=7" />

in the template files. This forces IE8 to run in compatibility mode. Google maps is using it too (as of March 30, 2009).

So, did Microsoft stop to support dynamically generated VML?

UPDATE: No, see below!

To all posts