在 WebBrowser 组件中使用 MathML 和 JavaScript

Using MathML and JavaScript inside WebBrowser component

我使用 MathML 在 HTML 中有以下网页。在我的 Firefox 中,这显示了一个很好的数学方程 $a x^2 + b x + c$,正如 MathML 应该的那样。

我想我现在可以将此网页加载到我的 Visual Studio 2015 WPF 应用程序的 WebBrowser 中。但是,MathML 不会按预期呈现。我想 WebBrowser 组件无法处理 MathML。

我有第二个网页使用 JavaScript,出于类似的原因我需要它。这也适用于 Firefox,但不适用于 Visual Studio.

的 WebBrowser

有什么建议吗?

<html>
<head>
<title>
Title
</title>
</head>

<body>

MathML:

<br>

<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<mi>a</mi>
<mo>&InvisibleTimes;</mo>
<msup>
<mi>x</mi>
<mn>2</mn>
</msup>
<mo>+</mo>
<mi>b</mi>
<mo>&InvisibleTimes; </mo>
<mi>x</mi>
<mo>+</mo>
<mi>c</mi>
</mrow>
</math>

</body>
</html>

Visual Studio(可能是 IE)中的 WebBrowser 尚不支持 MathML。可以使用 CSS 和 javascript 排版数学。然后网页需要包含

<!-- saved from url=(0014)about:internet -->

为了不弹出"Allow blocked content"。