--- title: MathMLElement slug: Web/API/MathMLElement tags: - API - MathML - 元素 - 参考 - 接口 translation_of: Web/API/MathMLElement --- <div>{{APIRef("MathML")}}</div> <p class="summary"><strong><code>MathMLElement</code></strong> 接口表示任意 <a href="/zh-CN/docs/Web/MathML">MathML</a> 元素。</p> <h2 id="属性">属性</h2> <p><em>This interface has no properties, but inherits properties from: {{DOMxRef("DocumentAndElementEventHandlers")}}, {{DOMxRef("Element")}}, {{DOMxRef("ElementCSSInlineStyle")}}, {{DOMxRef("GlobalEventHandlers")}}, {{DOMxRef("HTMLOrForeignElement")}}</em></p> <ul> </ul> <h2 id="方法">方法</h2> <p><em>This interface has no methods, but inherits methods from: {{DOMxRef("DocumentAndElementEventHandlers")}}, {{DOMxRef("Element")}}, {{DOMxRef("ElementCSSInlineStyle")}}, {{DOMxRef("GlobalEventHandlers")}}, {{DOMxRef("HTMLOrForeignElement")}}</em></p> <h2 id="示例">示例</h2> <h3 id="MathML">MathML</h3> <pre class="brush: html"><math xmlns="http://www.w3.org/1998/Math/MathML"> <msqrt> <mi>x</mi> </msqrt> </math></pre> <h3 id="JavaScript">JavaScript</h3> <pre class="brush: js">document.querySelector('msqrt').constructor.name; // MathMLElement</pre> <h2 id="规范">规范</h2> <table class="standard-table"> <thead> <tr> <th scope="col">规范</th> <th scope="col">状态</th> <th scope="col">备注</th> </tr> </thead> <tbody> <tr> <td><a href="https://mathml-refresh.github.io/mathml-core/#dom-mathmlelement">MathMLElement interface</a></td> <td></td> <td></td> </tr> </tbody> </table> <h2 id="浏览器兼容性">浏览器兼容性</h2> <p>{{Compat("api.MathMLElement")}}</p> <h2 id="参见">参见</h2> <ul> <li>{{DOMxRef("Element")}}</li> <li>{{DOMxRef("HTMLElement")}}</li> <li>{{DOMxRef("SVGElement")}}</li> </ul>