MathMLElement
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("MathML")}}
The **MathMLElement** interface represents any MathML element.
{{InheritanceDiagram}}
Instance properties
_Also inherits properties from its parent, {{DOMxRef("Element")}}_.
- {{DOMxRef("MathMLElement.attributeStyleMap")}} {{ReadOnlyInline}}
- : A {{DOMxRef("StylePropertyMap")}} representing the declarations of the element's
styleattribute. - {{DOMxRef("MathMLElement.autofocus")}}
- : Whether the control should be focused when the page loads, or when a {{htmlelement("dialog")}} or popover become shown.
- {{DOMxRef("MathMLElement.dataset")}} {{ReadOnlyInline}}
- : A {{DOMxRef("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-*](/en-US/docs/Web/MathML/Reference/Global_attributes/data-*) global attributes. - {{DOMxRef("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.
- {{DOMxRef("MathMLElement.style")}}
- : A {{DOMxRef("CSSStyleDeclaration")}} representing the declarations of the element's
styleattribute. - {{DOMxRef("MathMLElement.tabIndex")}}
- : The position of the element in the tabbing order.
Instance methods
_This interface also inherits methods from its parent, {{DOMxRef("Element")}}_.
- {{DOMxRef("MathMLElement.blur()")}}
- : Removes keyboard focus from the currently focused element.
- {{DOMxRef("MathMLElement.focus()")}}
- : Makes the element the current keyboard focus.
Examples
MathML
html
<math>
<msqrt>
<mi>x</mi>
</msqrt>
</math>JavaScript
js
document.querySelector("msqrt").constructor.name; // MathMLElementSpecifications
{{Specifications}}
Browser compatibility
{{Compat}}
See also
- {{DOMxRef("Element")}}
- {{DOMxRef("HTMLElement")}}
- {{DOMxRef("SVGElement")}}