I am trying to use d3 ( www.d3js.org ) using the Microsoft WebBrowser control from C. d3 uses the Javascript map method from the array. This is new in IE since version 9. Although the IE10 browser is capable of handling d3 pretty well, the WebBrowser control does not work.
I call document.write () through third-party code that I have no control over. This is ole_ie.c and you can find it on the Internet (see "DisplayHTMLStr"). If I must, I can refuse it, but I would prefer not to.
Here is the test line:
<!DOCTYPE html>
<head><meta http-equiv="X-UA-Compatible" content="IE=edge" ></meta>
<title>Get documentMode!</title>
</head>
<body>
<h2>document.documentMode</h2>
<p>
<script>
document.write(document.documentMode);
alert(@_jscript_version);
var x = ['a'].map(function(a) {});
</script>
<p>
</body>
This works fine when launched from a file, but when sent to WebBrowser (and you turn off the dialog) you get "Object does not support the property or method" map ".
FEATURE_BROWSER_EMULATION ( , ); 0x2711. X-UA-Compatible. documentMode 5, 7 8. @_jscript_version - 10. MSHTML.DLL - 10.0.9200.16750. Win7-64.
- ?