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

Specification
MathML Core
# dom-mathmlelement

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
MathMLElement
attributeStyleMap
autofocus
blur
dataset
focus
nonce
style
tabIndex

See also