MathMLElement
Baseline 2023 *Newly available
Since January 2023, this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.
* Some parts of this feature may have varying levels of support.
The MathMLElement
interface represents any MathML element.
Instance properties
Also inherits properties from its parent, Element
.
MathMLElement.attributeStyleMap
Read only-
A
StylePropertyMap
representing the declarations of the element'sstyle
attribute. MathMLElement.style
-
A
CSSStyleDeclaration
representing the declarations of the element'sstyle
attribute.
Instance methods
This interface has no methods, but inherits methods from its parent, Element
.
Examples
MathML
html
<math>
<msqrt>
<mi>x</mi>
</msqrt>
</math>
JavaScript
js
document.querySelector("msqrt").constructor.name; // MathMLElement
Specifications
Specification |
---|
MathML Core # dom-mathmlelement |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
MathMLElement | ||||||||||||
attributeStyleMap | ||||||||||||
autofocus | ||||||||||||
blur | ||||||||||||
dataset | ||||||||||||
focus | ||||||||||||
nonce | ||||||||||||
style | ||||||||||||
tabIndex |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- See implementation notes.
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.