W3cubDocs

/Web APIs

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 xmlns="http://www.w3.org/1998/Math/MathML">
  <msqrt>
    <mi>x</mi>
  </msqrt>
</math>

JavaScript

js

document.querySelector("msqrt").constructor.name; // MathMLElement

Specifications

Browser compatibility

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

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