MathMLElement

The MathMLElement interface represents any MathML element.

EventTarget Node Element MathMLElement

Instance properties

Also inherits properties from its parent, Element.

MathMLElement.attributeStyleMap Read only

A StylePropertyMap representing the declarations of the element's style attribute.

MathMLElement.style

A CSSStyleDeclaration representing the declarations of the element's style 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

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android
MathMLElement 109 109 71 95 13.1 109 79 74 13.4 21.0 109
attributeStyleMap 109 109 No 95 16.4 109 No 74 16.4 21.0 109
autofocus 109 109 110 95 15.4 109 110 74 15.4 21.0 109
blur 109 109 71 95 13.1 109 79 74 13.4 21.0 109
dataset 109 109 71 95 13.1 109 79 74 13.4 21.0 109
focus 109 109 71 95 13.1 109 79 74 13.4 21.0 109
nonce 109 109 No 95 15.4 109 No 74 15.4 21.0 109
style 109 109 71 95 13.1 109 79 74 13.4 21.0 109
tabIndex 109 109 71 95 13.1 109 79 74 13.4 21.0 109

See also

© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/MathMLElement