blob: 1d6c01f1c788240b5329d54f6f9890fddfbe2586 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
---
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>
|