MathMLElement
The MathMLElement interface represents any MathML element.
Instance properties
Also inherits properties from its parent, Element.
MathMLElement.attributeStyleMapRead only-
A
StylePropertyMaprepresenting the declarations of the element'sstyleattribute. MathMLElement.style-
A
CSSStyleDeclarationrepresenting the declarations of the element'sstyleattribute.
Instance methods
This interface has no methods, but inherits methods from its parent, Element.
Examples
MathML
html
<math xmlns="http://www.w3.org/1998/Math/MathML">
<msqrt>
<mi>x</mi>
</msqrt>
</math>
JavaScript
js
document.querySelector("msqrt").constructor.name; // MathMLElement
Specifications
| Specification |
|---|
| MathML Core # dom-mathmlelement |
Browser compatibility
BCD tables only load in the browser