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.
The MathMLElement interface represents any MathML element.
Instance properties
Also inherits properties from its parent, Element.
MathMLElement.attributeStyleMapRead only-
A
StylePropertyMaprepresenting the declarations of the element'sstyleattribute. MathMLElement.autofocus-
Whether the control should be focused when the page loads, or when a
<dialog>or popover become shown. MathMLElement.datasetRead only-
A
DOMStringMapobject which provides a list of key/value pairs of named data attributes which correspond to custom data attributes attached to the element. These correspond to MathML'sdata-*global attributes. MathMLElement.style-
A
CSSStyleDeclarationrepresenting the declarations of the element'sstyleattribute. MathMLElement.tabIndex-
The 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; // MathMLElement
Specifications
| Specification |
|---|
| MathML Core> # dom-mathmlelement> |
Browser compatibility
Loading…