实例属性
还继承了其父级 Element 的属性.
MathMLElement.attributeStyleMap只读-
一个
StylePropertyMap,表示元素style属性的声明。 MathMLElement.autofocusMathMLElement.dataset只读-
一个
DOMStringMap对象,提供了一系列键/值对,用于命名数据属性,这些属性对应于附加到元素的 自定义数据属性。这些对应于 MathML 的data-*全局属性。 MathMLElement.style-
一个
CSSStyleDeclaration,表示元素style属性的声明。 MathMLElement.tabIndex-
元素在制表符顺序中的位置。
实例方法
此接口还继承了其父级 Element 的方法.
MathMLElement.blur()-
从当前获得焦点的元素中移除键盘焦点。
MathMLElement.focus()-
使元素成为当前的键盘焦点。
示例
MathML
html
<math>
<msqrt>
<mi>x</mi>
</msqrt>
</math>
JavaScript
js
document.querySelector("msqrt").constructor.name; // MathMLElement
规范
| 规范 |
|---|
| MathML Core # dom-mathmlelement |
浏览器兼容性
加载中…