Firefox Tomorrow

web api interface

MathMLElement

View on MDN ↗

The MathMLElement interface represents any MathML element.

Instance properties

Also inherits properties from its parent, Element.

  • attributeStyleMap Read only
    • : A StylePropertyMap representing the declarations of the element’s style attribute.
  • autofocus
    • : Whether the control should be focused when the page loads, or when a <dialog> or popover become shown.
  • dataset Read only
    • : A DOMStringMap object 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’s data-* global attributes.
  • nonce
    • : Returns the cryptographic number used once that is used by Content Security Policy to determine whether a given fetch will be allowed to proceed.
  • style
  • tabIndex
    • : The position of the element in the tabbing order.

Instance methods

This interface also inherits methods from its parent, Element.

  • blur()
    • : Removes keyboard focus from the currently focused element.
  • 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

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also