MDN self-hosted library · e01.org

MathMLElement

MathML

MathML

The MathMLElement interface represents any MathML element.

Instance properties

Also inherits properties from its parent, Element.

  • MathMLElement.attributeStyleMap
  • : A StylePropertyMap representing the declarations of the element's style attribute.
  • MathMLElement.autofocus
  • : Whether the control should be focused when the page loads, or when a dialog or popover become shown.
  • MathMLElement.dataset
  • : 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.
  • MathMLElement.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.
  • MathMLElement.style
  • : A CSSStyleDeclaration representing the declarations of the element's style attribute.
  • 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

Browser compatibility

See also

  • Element
  • HTMLElement
  • SVGElement