Make IE9 and IE10 use SVG for menclose rather than SVG (when in a document mode that supports it). Resolves issue #324.
This commit is contained in:
parent
e7b29726b6
commit
5921c8cb84
File diff suppressed because one or more lines are too long
|
@ -279,14 +279,19 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
|
|||
|
||||
MathJax.Hub.Browser.Select({
|
||||
MSIE: function (browser) {
|
||||
MML.menclose.Augment({HTMLpx: function (n,d) {return (n*HTMLCSS.em+(d||0))+"px"}});
|
||||
HTMLCSS.useVML = true;
|
||||
if (!document.namespaces[vmlns]) {
|
||||
if (document.documentMode && document.documentMode >= 8) {
|
||||
document.namespaces.add(vmlns,VMLNS,"#default#VML");
|
||||
} else {
|
||||
document.namespaces.add(vmlns,VMLNS);
|
||||
document.createStyleSheet().addRule(vmlns+"\\: *","{behavior: url(#default#VML)}");
|
||||
//
|
||||
// IE8 and below doesn't have SVG, so use VML
|
||||
//
|
||||
if ((document.documentMode||0) < 9) {
|
||||
MML.menclose.Augment({HTMLpx: function (n,d) {return (n*HTMLCSS.em+(d||0))+"px"}});
|
||||
HTMLCSS.useVML = true;
|
||||
if (!document.namespaces[vmlns]) {
|
||||
if (document.documentMode && document.documentMode === 8) {
|
||||
document.namespaces.add(vmlns,VMLNS,"#default#VML");
|
||||
} else {
|
||||
document.namespaces.add(vmlns,VMLNS);
|
||||
document.createStyleSheet().addRule(vmlns+"\\: *","{behavior: url(#default#VML)}");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user