例項屬性
還繼承了其父級 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 |
瀏覽器相容性
載入中…