【问题标题】:MathJax and MathML displayed 'Unknown node type: declare' on IEMathJax 和 MathML 在 IE 上显示“未知节点类型:声明”
【发布时间】:2017-02-21 08:58:20
【问题描述】:

我正在使用 MathJax 研究 MathML,因为它是为了在 IE 和 Chrome 上显示数学表达式。无论如何......当我尝试使用像以下这样的“声明”标签时,

<head>
<meta charset="UTF-8">
<title>Mixed Markup</title>

<script type="text/x-mathjax-config">
    MathJax.Hub.Config({
        MathML: {
            extensions: ["content-mathml.js"]
        }
    });
</script>

<script type="text/javascript" async
        src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>

<body>
    <math xmlns="http://www.w3.org/1998/Math/MathML">
        <declare>
            <ci> A </ci>
            <vector>
               <ci> a </ci>
               <ci> b </ci>
               <ci> c </ci>
            </vector>
        </declare>
    </math>
</body>

IE 显示为

Unknown node type: declare

那么...我可以做些什么来使用declare标签??

【问题讨论】:

标签: html mathjax mathml


【解决方案1】:

&lt;declare&gt; 元素在 MathML 中已弃用,请参阅。 the spec 和 MathJax 的 Content MathML 扩展不支持它;支持较新的 &lt;share&gt; 元素(替换 declare)。

【讨论】:

  • 太谢谢你了!能给个地址吗?我在 MathML 的内容标记页面中看不到这一点...w3.org/TR/MathML2/chapter4.html#contm.declare
  • 您正在链接到 MathML 2 规范,而在我的回答中,我指向当前的 MathML 3 规范(准确地说是编辑草稿)。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-05-28
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2020-07-11
相关资源
最近更新 更多