MathMLElement
Baseline Widely available *
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2023.
* Some parts of this feature may have varying levels of support.
TheMathMLElement interface represents anyMathML element.
In this article
Instance properties
Also inherits properties from its parent,Element.
MathMLElement.attributeStyleMapRead onlyA
StylePropertyMaprepresenting the declarations of the element'sstyleattribute.MathMLElement.autofocusWhether the control should be focused when the page loads, or when a
<dialog>orpopover become shown.MathMLElement.datasetRead onlyA
DOMStringMapobject which provides a list of key/value pairs of named data attributes which correspond tocustom data attributes attached to the element. These correspond to MathML'sdata-*global attributes.MathMLElement.styleA
CSSStyleDeclarationrepresenting the declarations of the element'sstyleattribute.MathMLElement.tabIndexThe position of the element in the tabbing order.
Instance methods
This interface also inherits methods from its parent,Element.
MathMLElement.blur()Removes keyboard focus from the currently focused element.
MathMLElement.focus()Makes the element the current keyboard focus.
Examples
>MathML
<math> <msqrt> <mi>x</mi> </msqrt></math>JavaScript
document.querySelector("msqrt").constructor.name; // MathMLElementSpecifications
| Specification |
|---|
| MathML Core> # dom-mathmlelement> |