The following sections describe the interfaces that have been defined in the Document Object Model for MathML. Please refer to Chapter 8 Document Object Model for MathML for more information.
Bindings for IDL, Java and ECMAScript are located in Appendix E MathML Document Object Model Bindings.
Extends:
DOMImplementation
This interface extends the DOMImplementation interface by adding a method to create a MathMLDocument.
IDL Definition
interface MathMLDOMImplementation: DOMImplementation {
MathMLDocument createMathMLDocument();
};Methods
createMathMLDocumentCreates a MathMLDocument with a minimal tree
containing only a MathMLMathElement corresponding to a MathML math
element. The MathMLMathElement is empty, having no child elements or non-default attributes; it is the
root element of the document, and is the element accessed via the documentElement attribute of
the MathMLDocument. Note that a MathMLDocument object should only be created for a
stand-alone MathML document.
Return value
MathMLDocument |
The MathMLDocument created. |
This method raises no exceptions.
Extends:
Document
This interface extends the Document interface to
add access to document properties relating to navigation. The documentElement
attribute for a MathMLDocument should be the MathMLMathElement
representing the top-level math element
which is the root of the document.
IDL Definition
interface MathMLDocument: Document {
readonly attribute DOMString referrer;
readonly attribute DOMString domain;
readonly attribute DOMString URI;
};Attributes
referrer of type
DOMString, readonly
The URI of the page that linked to this document, if available. This is null if the user navigated directly to the page. If this is not a stand-alone MathML document (e.g. is embedded in an XHTML document), this may be retrieved from the parent Document if available.
domain of type
DOMString, readonly
The domain name of the server that served the document, or null if the server cannot be identified by a domain name, or if it is not available. If this is not a stand-alone MathML document (e.g. is embedded in an XHTML document), this may be retrieved from the parent Document if available.
URI of type
DOMString, readonly
The complete URI of this document. This is null if this is not a stand-alone MathML document.
Extends:
NodeList
This interface is provided as a specialization of the NodeList interface. The child Nodes of this NodeList must be MathMLElements or Text nodes.
Note that MathMLNodeLists are frequently used in the DOM as values of readonly attributes, encapsulating, for instance, various collections of child elements. When used in this way, these objects are always understood to be live, in the sense that changes to the document are immediately reflected in them.
IDL Definition
interface MathMLNodeList: NodeList {
};Extends:
Element
All MathML element interfaces derive from this object, which derives from the basic DOM interface Element.
IDL Definition
interface MathMLElement: Element {
attribute DOMString className;
attribute DOMString mathElementStyle;
attribute DOMString id;
attribute DOMString xref;
attribute DOMString href;
readonly attribute MathMLMathElement ownerMathElement;
};Attributes
className of type
DOMStringThe class attribute of the element. See
the discussion elsewhere in this document of the class attribute; see also the
HTML definition of this attribute.
mathElementStyle of type
DOMStringA string identifying the element's style
attribute.
id of type
DOMStringThe element's identifier. See the discussion elsewhere in this
document of the id
attribute; see also the HTML definition.
xref of type
DOMStringThe xref attribute of the element. See
the discussion elsewhere in this document of the xref attribute.
href of type
DOMStringThe xlink:href attribute of the element. See
the discussion elsewhere in this document of the xlink:href attribute; see also the
definition of this attribute in the
XLink specification.
ownerMathElement of type
MathMLMathElement, readonly
The MathMLMathElement corresponding to the nearest
math element ancestor of this element. Should be null
if this element is a top-level math element.
This is an abstract interface containing functionality required by MathML elements that may contain arbitrarily many child elements. No elements are directly supported by this interface; all instances are instances of either MathMLPresentationContainer, MathMLContentContainer, or MathMLMathElement.
IDL Definition
interface MathMLContainer {
readonly attribute unsigned long nArguments;
readonly attribute MathMLNodeList arguments;
readonly attribute MathMLNodeList declarations;
MathMLElement getArgument(in unsigned long index);
MathMLElement setArgument(in MathMLElement newArgument, in unsigned long index);
MathMLElement insertArgument(in MathMLElement newArgument, in unsigned long index);
void deleteArgument(in unsigned long index);
MathMLElement removeArgument(in unsigned long index);
MathMLDeclareElement getDeclaration(in unsigned long index);
MathMLDeclareElement setDeclaration(in MathMLDeclareElement newDeclaration, in unsigned long index);
MathMLDeclareElement insertDeclaration(in MathMLDeclareElement newDeclaration, in unsigned long index);
MathMLDeclareElement removeDeclaration(in unsigned long index);
void deleteDeclaration(in unsigned long index);
};Attributes
nArguments of type
unsigned long, readonly
The number of child elements of this element
which represent arguments of the element, as opposed to qualifiers or declare elements.
Thus for a MathMLContentContainer it does not contain elements representing bound variables, conditions,
separators, degrees, or upper or lower limits (bvar,
condition, sep,
degree, lowlimit,
or uplimit).
arguments of type
MathMLNodeList, readonly
This attribute accesses the child MathMLElements of
this element which are arguments of it, as a MathMLNodeList. Note that this list does not
contain any MathMLElements representing qualifier elements or declare elements.
declarations of type
MathMLNodeList, readonly
Provides access to the declare elements
which are children of this element, in a MathMLNodeList. All
Nodes in this list must be MathMLDeclareElements.
Methods
getArgumentThis method returns the indexth child argument element of this
element. This frequently differs from the value of Node::childNodes().item(index),
as qualifier elements and declare elements are not counted.
Parameters
unsigned long |
index |
The one-based index of the argument to be retrieved. |
Return value
MathMLElement |
A MathMLElement representing the index-th argument of this element. |
Exceptions
DOMExceptionINDEX_SIZE_ERR: Raised if index is greater than the number of child elements.
setArgumentThis method sets newArgument as the
index-th argument of this element. If there is currently an
index-th argument, it is replaced by newArgument.
This frequently differs from setting the node at Node::childNodes().item(index),
as qualifier elements and declare elements are not counted.
Parameters
MathMLElement |
newArgument |
A MathMLElement representing the element that is to be set as the index-th argument of this element. |
unsigned long |
index |
The index of the argument that is to be set to newArgument. The first argument is numbered 1. If index is one more than the current number of arguments, a new argument is appended. |
Return value
MathMLElement |
The MathMLElement child of this element that represents the new argument in the DOM. |
Exceptions
DOMExceptionHIERARCHY_REQUEST_ERR: Raised if this element does not permit a child element of the type of newArgument, if this is a MathMLContentContainer and newArgument is a qualifier element, or if newElement is a MathMLDeclareElement.
INDEX_SIZE_ERR: Raised if index is greater than one more than the number of child elements.
insertArgumentThis method inserts newArgument before the
current index-th argument of this element. If index is 0, or if
index is one more than the current number of arguments, newArgument is
appended as the last argument. This frequently differs from setting the node at
Node::childNodes().item(index), as qualifier elements and declare
elements are not counted.
Parameters
MathMLElement |
newArgument |
A MathMLElement representing the element that is to be inserted as a child argument of this element. |
unsigned long |
index |
The one-based index of the position before which newArgument is to be inserted. The first argument is numbered 1. |
Return value
MathMLElement |
The MathMLElement child of this element that represents the new argument in the DOM. |
Exceptions
DOMExceptionHIERARCHY_REQUEST_ERR: Raised if this element does not permit a child argument of the type of newArgument, or, for MathMLContentContainers, if newArgument represents a qualifier element.
INDEX_SIZE_ERR: Raised if index is greater than one more than the number of child arguments.
deleteArgumentThis method deletes the index-th
child element that is an argument of this element. Note that child elements
which are qualifier elements or declare elements are not counted
in determining the index-th argument.
Parameters
unsigned long |
index |
The one-based index of the argument to be deleted. |
Return value
void |
None. |
Exceptions
DOMExceptionINDEX_SIZE_ERR: Raised if index is greater than the number of child elements.
removeArgumentThis method deletes the index-th
child element that is an argument of this element, and returns it to the caller.
Note that child elements that are qualifier elements or declare
elements are not counted in determining the index-th argument.
Parameters
unsigned long |
index |
The one-based index of the argument to be removed. |
Return value
MathMLElement |
A MathMLElement representing the argument being removed. |
Exceptions
DOMExceptionINDEX_SIZE_ERR: Raised if index is greater than the number of child elements.
getDeclarationThis method retrieves the index-th child
declare element of this element.
Parameters
unsigned long |
index |
A one-based index into the list of
child |
Return value
MathMLDeclareElement |
The MathMLDeclareElement representing
the index-th child |
Exceptions
DOMExceptionINDEX_SIZE_ERR: Raised if index is greater than
the number of child declare elements.
setDeclarationThis method inserts newDeclaration as the index-th
child declaration of this element. If there is already an index-th
declare child element, it is replaced by
newDeclaration.
Parameters
MathMLDeclareElement |
newDeclaration |
A MathMLDeclareElement to be
inserted as the index-th child |
unsigned long |
index |
A one-based index into the list of
child |
Return value
MathMLDeclareElement |
The MathMLDeclareElement being inserted. |
Exceptions
DOMExceptionINDEX_SIZE_ERR: Raised if index is greater than
one more than the number of child declare elements.
HIERARCHY_REQUEST_ERR: Raised if this element does not permit child declare
elements.
insertDeclarationThis method inserts newDeclaration
before the current index-th child declare
element of this element. If index is 0, newDeclaration is appended
as the last child declare element.
Parameters
MathMLDeclareElement |
newDeclaration |
A MathMLDeclareElement to be inserted as the
index-th child |
unsigned long |
index |
A one-based index into the list of
child |
Return value
MathMLDeclareElement |
The MathMLDeclareElement child of this element representing newDeclaration in the DOM. |
Exceptions
DOMExceptionINDEX_SIZE_ERR: Raised if index is greater
than one more than the number of child declare elements.
HIERARCHY_REQUEST_ERR: Raised if this element does not permit child declare
elements.
removeDeclarationThis method removes the MathMLDeclareElement representing
the index-th declare child element of
this element, and returns it to the caller. Note that index
is the position in the list of declare element children,
as opposed to the position in the list of all child Nodes.
Parameters
unsigned long |
index |
The one-based index of the |
Return value
MathMLDeclareElement |
The MathMLDeclareElement being removed as a child Node of this element. |
Exceptions
DOMExceptionINDEX_SIZE_ERR: Raised if index is greater than
the number of child declare elements.
deleteDeclarationThis method deletes the MathMLDeclareElement representing
the index-th declare child element of
this element. Note that index is the position in the list of declare
element children, as opposed to the position in the list of all child Nodes.
Parameters
unsigned long |
index |
The one-based index of the |
Return value
void |
None. |
Exceptions
DOMExceptionINDEX_SIZE_ERR: Raised if index is greater than
the number of child declare elements.
Extends:
MathMLElement, MathMLContainer
This interface represents the top-level MathML math
element.
It may become useful for interfacing between the Document Object Model objects encoding an enclosing document and the MathML DOM elements that are its children. It could also be used for some purposes as a MathML DOM surrogate for a Document object. For instance, MathML-specific factory methods could be placed here, as could methods for creating MathML-specific Iterators or TreeWalkers. However, this functionality is as yet undefined.
IDL Definition
interface MathMLMathElement: MathMLElement, MathMLContainer {
attribute DOMString macros;
attribute DOMString display;
};Attributes
macros of type
DOMStringRepresents the macros
attribute of the math element. See
Section 7.1.2 The Top-Level
math Element.
display of type
DOMStringRepresents the display
attribute of the math element. This value is either
"block" or "inline". See
Section 7.1.2 The Top-Level
math Element.
Extends:
MathMLElement
This interface represents the semantics
element in MathML.
IDL Definition
interface MathMLSemanticsElement: MathMLElement {
attribute MathMLElement body;
readonly attribute unsigned long nAnnotations;
MathMLElement getAnnotation(in unsigned long index);
MathMLElement insertAnnotation(in MathMLElement newAnnotation, in unsigned long index);
MathMLElement setAnnotation(in MathMLElement newAnnotation, in unsigned long index);
void deleteAnnotation(in unsigned long index);
MathMLElement removeAnnotation(in unsigned long index);
};Attributes
body of type
MathMLElementThis attribute represents the first child of the semantics element, i.e. the child giving the
"primary" content represented by the element.
nAnnotations of type
unsigned long, readonly
Represents the number of annotation or annotation-xml children of
the semantics element, i.e. the number of alternate content forms
for this element.
Methods
getAnnotationThis method gives access to the index-th
"alternate" content associated with a semantics element.
Parameters
unsigned long |
index |
The one-based index of the annotation being retrieved. |
Return value
MathMLElement |
The MathMLAnnotationElement or
MathMLXMLAnnotationElement representing the index-th
|
This method raises no exceptions.
insertAnnotationThis method inserts newAnnotation before
the current index-th "alternate" content associated
with a semantics element. If index is 0,
newAnnotation is appended as the last annotation or annotation-xml child of this element.
Parameters
MathMLElement |
newAnnotation |
A MathMLAnnotationElement or
MathMLXMLAnnotationElement representing the new |
unsigned long |
index |
The position in the list of |
Return value
MathMLElement |
The MathMLAnnotationElement or MathMLXMLAnnotationElement child of this element that represents the new annotation in the DOM. |
Exceptions
DOMExceptionHIERARCHY_REQUEST_ERR: Raised if newAnnotation is not a MathMLAnnotationElement or MathMLXMLAnnotationElement.
INDEX_SIZE_ERR: Raised if index is greater
than the current number of annotation or
annotation-xml children of this semantics element.
setAnnotationThis method allows setting or replacement of the
index-th "alternate" content associated with a
semantics element. If there is already an
annotation or annotation-xml
element with this index, it is replaced by newAnnotation.
Parameters
MathMLElement |
newAnnotation |
A MathMLAnnotationElement or
MathMLXMLAnnotationElement representing the new value of the index-th |
unsigned long |
index |
The position in the list of
|
Return value
MathMLElement |
The MathMLAnnotationElement or MathMLXMLAnnotationElement child of this element that represents the new annotation in the DOM. |
Exceptions
DOMExceptionHIERARCHY_REQUEST_ERR: Raised if newAnnotation is not a MathMLAnnotationElement or MathMLXMLAnnotationElement.
INDEX_SIZE_ERR: Raised if index is greater
than one more than the current number of annotation
or annotation-xml children of this semantics element.
deleteAnnotationA convenience method to delete the index-th
"alternate" content associated with this semantics element.
Parameters
unsigned long |
index |
The one-based index of the annotation being deleted. |
Return value
void |
None. |
This method raises no exceptions.
removeAnnotationA convenience method to delete the index-th
"alternate" content associated with this semantics element, and to return it to the caller.
Parameters
unsigned long |
index |
The one-based index of the annotation being deleted. |
Return value
MathMLElement |
The MathMLAnnotationElement or MathMLXMLAnnotationElement being deleted. |
This method raises no exceptions.
Extends:
MathMLElement
This interface represents the annotation
element of MathML.
IDL Definition
interface MathMLAnnotationElement: MathMLElement {
attribute DOMString body;
attribute DOMString encoding;
};Attributes
body of type
DOMStringProvides access to the content of an annotation
element.
encoding of type
DOMStringProvides access to the encoding
attribute of an annotation element.
Extends:
MathMLElement
This interface represents the annotation-xml
element of MathML.
IDL Definition
interface MathMLXMLAnnotationElement: MathMLElement {
attribute DOMString encoding;
};Attributes
Extends:
MathMLElement
This interface is provided to serve as a base interface for various MathML Presentation interfaces. It contains no new attributes or methods at this time; however, it is felt that the distinction between Presentation and Content MathML entities should be indicated in the MathMLElement hierarchy. In particular, future versions of the MathML DOM may add functionality on this interface; it may also serve as an aid to implementors.
IDL Definition
interface MathMLPresentationElement: MathMLElement {
};Extends:
MathMLPresentationElement
This interface supports the mglyph element
Section 3.2.9 Accessing glyphs for
characters from MathML
(mglyph).
IDL Definition
interface MathMLGlyphElement: MathMLPresentationElement {
attribute DOMString alt;
attribute DOMString fontfamily;
attribute unsigned long index;
};Attributes
alt of type
DOMStringA string giving an alternate name for the character. Represents
the mglyph's alt
attribute.
fontfamily of type
DOMStringA string representing the font family.
index of type
unsigned longAn unsigned integer giving the glyph's position within the font.
Extends:
MathMLPresentationElement
This interface extends the MathMLPresentationElement
interface for the MathML space element mspace.
Note that this is not derived from MathMLPresentationToken,
despite the fact that mspace is classified as a token element,
since it does not carry the attributes declared for
MathMLPresentationToken.
IDL Definition
interface MathMLSpaceElement: MathMLPresentationElement {
attribute DOMString width;
attribute DOMString height;
attribute DOMString depth;
attribute DOMString linebreak;
};Attributes
width of type
DOMStringA string of the form "number
h-unit"; represents the width
attribute for the mspace element, if specified.
height of type
DOMStringA string of the form "number
v-unit"; represents the height
attribute for the mspace element, if specified.
depth of type
DOMStringA string of the form "number
v-unit"; represents the depth
attribute for the mspace element, if specified.
linebreak of type
DOMStringOne of the strings "auto", "newline", "indentingnewline", "nobreak", "goodbreak" and "badbreak". This attribute gives a linebreaking hint to the renderer.
Interfaces representing the MathML Presentation token elements that may have content are described here.
Extends:
MathMLPresentationElement
This interface extends the MathMLElement interface to include access for attributes specific to text presentation. It serves as the base class for all MathML presentation token elements. Access to the body of the element is via the nodeValue attribute inherited from Node. Elements that expose only the core presentation token attributes are directly supported by this object. These elements are:
IDL Definition
interface MathMLPresentationToken: MathMLPresentationElement {
attribute DOMString mathvariant;
attribute DOMString mathsize;
attribute DOMString mathfamily;
attribute DOMString mathcolor;
attribute DOMString mathbackground;
readonly attribute MathMLNodeList contents;
};Attributes
mathvariant of type
DOMStringThe mathvariant attribute for the element, if
specified. One of the values "normal", "bold", "italic", "bold-italic", "double-struck", "bold-fraktur",
"script", "bold-script", "fraktur", "sans-serif", "bold-sans-serif", "sans-serif-italic", "sans-serif-bold-italic",
or "monospace".
mathsize of type
DOMStringThe mathsize attribute for the element, if
specified. Either "small", "normal" or "big", or of the
form "number v-unit".
mathcolor of type
DOMStringThe mathcolor attribute for the element, if
specified. The DOMString returned should be in one of the forms "#rgb" or "#rrggbb", or should be an
html-color-name, as specified in Section 3.2.2.2 Color-related attributes.
mathbackground of type
DOMStringThe mathbackground attribute for the element, if
specified. The DOMString returned should be in one of the forms "#rgb" or "#rrggbb", or an
html-color-name, as specified in Section 3.2.2.2 Color-related attributes, or the keyword "transparent".
contents of type
MathMLNodeList, readonly
Returns the child Nodes of the element. These should consist only of Text nodes, MathMLGlyphElements, and MathMLAlignMarkElements. Should behave the same as the base class's Node::childNodes attribute; however, it is provided here for clarity.
Extends:
MathMLPresentationToken
This interface extends the MathMLPresentationToken
interface for the MathML operator element mo.
IDL Definition
interface MathMLOperatorElement: MathMLPresentationToken {
attribute DOMString form;
attribute DOMString fence;
attribute DOMString separator;
attribute DOMString lspace;
attribute DOMString rspace;
attribute DOMString stretchy;
attribute DOMString symmetric;
attribute DOMString maxsize;
attribute DOMString minsize;
attribute DOMString largeop;
attribute DOMString movablelimits;
attribute DOMString accent;
};Attributes
form of type
DOMStringThe form attribute ("prefix",
"infix" or "postfix") for the
mo element, if specified.
fence of type
DOMStringThe fence attribute
("true" or "false")
for the mo element, if specified.
separator of type
DOMStringThe separator attribute
("true" or "false") for the
mo element, if specified.
lspace of type
DOMStringThe lspace attribute (spacing to left) of
the mo element, if specified.
rspace of type
DOMStringThe rspace attribute (spacing to right) of the
mo element, if specified.
stretchy of type
DOMStringThe stretchy attribute
("true" or "false") for the
mo element, if specified.
symmetric of type
DOMStringThe symmetric attribute
("true" or "false") for the
mo element, if specified.
maxsize of type
DOMStringThe maxsize attribute for the
mo element, if specified.
minsize of type
DOMStringThe minsize attribute for the
mo element, if specified.
largeop of type
DOMStringThe largeop attribute for the
mo element, if specified.
movablelimits of type
DOMStringThe movablelimits
("true" or "false") attribute for the
mo element, if specified.
accent of type
DOMStringThe accent attribute
("true" or "false") for the
mo element, if specified.
Extends:
MathMLPresentationToken
This interface extends the MathMLPresentationToken
interface for the MathML string literal element
ms.
IDL Definition
interface MathMLStringLitElement: MathMLPresentationToken {
attribute DOMString lquote;
attribute DOMString rquote;
};Attributes
lquote of type
DOMStringA string giving the opening delimiter for the string literal;
represents the lquote attribute for the
ms element, if specified.
rquote of type
DOMStringA string giving the closing delimiter for the string literal;
represents the rquote attribute for the
ms element, if specified.
Interfaces designed to represent MathML Presentation elements that can contain arbitrary numbers of child MathMLElements are included under the heading of Presentation Container Elements.
Extends:
MathMLPresentationElement, MathMLContainer
This interface represents MathML Presentation elements that may
contain arbitrarily many child elements. Elements directly supported by this interface
include mrow, mphantom and merror.
All attributes and methods are derived from the base MathMLPresentationElement and MathMLContainer interfaces.
IDL Definition
interface MathMLPresentationContainer: MathMLPresentationElement, MathMLContainer {
};Extends:
MathMLPresentationContainer
This interface extends the MathMLElement interface for
the MathML style element mstyle.
While the mstyle element may contain any
attributes allowable on any MathML presentation element, only
attributes specific to the mstyle
element are included in the interface below. Other attributes should be
accessed using the methods on the base Element class, particularly
the Element::getAttribute and Element::setAttribute
methods, or even the Node::attributes attribute to access all of
them at once. Not only does this obviate a lengthy list below, but it seems
likely that most implementations will find this a considerably more useful
interface to a MathMLStyleElement.
IDL Definition
interface MathMLStyleElement: MathMLPresentationContainer {
attribute DOMString scriptlevel;
attribute DOMString displaystyle;
attribute DOMString scriptsizemultiplier;
attribute DOMString scriptminsize;
attribute DOMString color;
attribute DOMString background;
attribute DOMString veryverythinmathspace;
attribute DOMString verythinmathspace;
attribute DOMString thinmathspace;
attribute DOMString mediummathspace;
attribute DOMString thickmathspace;
attribute DOMString verythickmathspace;
attribute DOMString veryverythickmathspace;
attribute DOMString negativeveryverythinmathspace;
attribute DOMString negativeverythinmathspace;
attribute DOMString negativethinmathspace;
attribute DOMString negativemediummathspace;
attribute DOMString negativethickmathspace;
attribute DOMString negativeverythickmathspace;
attribute DOMString negativeveryverythickmathspace;
};Attributes
scriptlevel of type
DOMStringA string of the form "+/- unsigned
integer"; represents the scriptlevel
attribute for the mstyle element, if specified. See
also the discussion of this attribute.
displaystyle of type
DOMStringEither "true" or "false";
a string representing the displaystyle attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
scriptsizemultiplier of type
DOMStringA string of the form "number";
represents the scriptsizemultiplier attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
scriptminsize of type
DOMStringA string of the form "number
v-unit"; represents the
scriptminsize attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
background of type
DOMStringA string representation of a color or the string
"transparent"; represents the
background attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
veryverythinmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"veryverythinmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
verythinmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"verythinmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
thinmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"thinmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
mediummathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"mediummathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
thickmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"thickmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
verythickmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"verythickmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
veryverythickmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"veryverythickmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
negativeveryverythinmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"negativeveryverythinmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
negativeverythinmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"negativeverythinmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
negativethinmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"negativethinmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
negativemediummathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"negativemediummathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
negativethickmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"negativethickmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
negativeverythickmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"negativeverythickmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
negativeveryverythickmathspace of type
DOMStringA string of the form "number
h-unit"; represents the
"negativeveryverythickmathspace" attribute for the
mstyle element, if specified. See also the discussion
of this attribute.
Extends:
MathMLPresentationContainer
This interface extends the MathMLElement interface for
the MathML spacing adjustment element
mpadded.
IDL Definition
interface MathMLPaddedElement: MathMLPresentationContainer {
attribute DOMString width;
attribute DOMString lspace;
attribute DOMString height;
attribute DOMString depth;
};Attributes
width of type
DOMStringA string representing the total width of the
mpadded element, if specified. See also the discussion
of this attribute.
lspace of type
DOMStringA string representing the lspace attribute -
the additional space to the left - of the mpadded
element, if specified. See also the discussion of this
attribute.
height of type
DOMStringA string representing the height above the
baseline of the mpadded element, if specified. See
also the discussion of this attribute.
depth of type
DOMStringA string representing the depth beneath the
baseline of the mpadded element, if specified. See
also the discussion of this attribute.
Extends:
MathMLPresentationContainer
This interface extends the
MathMLPresentationContainer interface for the MathML
fenced content element mfenced.
IDL Definition
interface MathMLFencedElement: MathMLPresentationContainer {
attribute DOMString open;
attribute DOMString close;
attribute DOMString separators;
};Attributes
open of type
DOMStringA string representing the opening-fence for the
mfenced element, if specified; this is the element's
open attribute.
close of type
DOMStringA string representing the closing-fence for the
mfenced element, if specified; this is the element's
close attribute.
separators of type
DOMStringA string representing any separating characters inside the
mfenced element, if specified; this is the element's
separators attribute.
Extends:
MathMLPresentationContainer
This interface supports the menclose
element Section 3.3.9 Enclose Expression Inside Notation
(menclose).
IDL Definition
interface MathMLEncloseElement: MathMLPresentationContainer {
attribute DOMString notation;
};Attributes
notation of type
DOMStringA string giving a name for the notation enclosing
the element's contents. Represents the notation attribute
of the menclose. Any string is allowed as a value; predefined values include
"longdiv", "actuarial", "radical",
"box", "roundedbox", "circle",
"left", "right", "top",
"bottom", "updiagonalstrike", "downdiagonalstrike",
"verticalstrike", "horizontalstrike", or combinations of
these strings separated by whitespace (see Section 3.3.9 Enclose Expression Inside Notation
(menclose)).
Extends:
MathMLPresentationContainer
This interface extends the
MathMLPresentationContainer interface for the MathML
enlivening expression element maction.
IDL Definition
interface MathMLActionElement: MathMLPresentationContainer {
attribute DOMString actiontype;
attribute DOMString selection;
};Attributes
Extends:
MathMLPresentationElement
This interface extends the MathMLPresentationElement interface for
the MathML fraction element mfrac.
IDL Definition
interface MathMLFractionElement: MathMLPresentationElement {
attribute DOMString linethickness;
attribute DOMString numalign;
attribute DOMString denomalign;
attribute DOMString bevelled;
attribute MathMLElement numerator;
attribute MathMLElement denominator;
};Attributes
linethickness of type
DOMStringA string representing the linethickness
attribute of the mfrac, if specified.
numalign of type
DOMStringOne of the strings "left", "center"
and "right". Represents the numalign attribute of
the mfrac, if specified.
denomalign of type
DOMStringOne of the strings "left", "center"
and "right". Represents the denomalign attribute of
the mfrac, if specified.
bevelled of type
DOMStringOne of the strings "true" and "false".
Represents the bevelled attribute of the mfrac, if specified.
numerator of type
MathMLElementThe first child MathMLElement of the MathMLFractionElement; represents the numerator of the represented fraction.
denominator of type
MathMLElementThe second child MathMLElement of the MathMLFractionElement; represents the denominator of the represented fraction.
Extends:
MathMLPresentationElement
This interface extends the MathMLPresentationElement interface for
the MathML radical and square root elements
mroot and msqrt.
IDL Definition
interface MathMLRadicalElement: MathMLPresentationElement {
attribute MathMLElement radicand;
attribute MathMLElement index;
};Attributes
radicand of type
MathMLElementThe first child MathMLElement of the MathMLRadicalElement; represents the base of the represented radical.
index of type
MathMLElementThe second child MathMLElement of the
MathMLRadicalElement; represents the index of the
represented radical. This must be null for
msqrt elements.
Extends:
MathMLPresentationElement
This interface extends the MathMLPresentationElement interface for
the MathML subscript, superscript and
subscript-superscript pair elements
msub, msup, and
msubsup.
IDL Definition
interface MathMLScriptElement: MathMLPresentationElement {
attribute DOMString subscriptshift;
attribute DOMString superscriptshift;
attribute MathMLElement base;
attribute MathMLElement subscript;
attribute MathMLElement superscript;
};Attributes
subscriptshift of type
DOMStringA string representing the minimum amount to shift the baseline of
the subscript down, if specified; this is the element's
subscriptshift attribute. This must return null
for an msup.
superscriptshift of type
DOMStringA string representing the minimum amount to shift the baseline of
the superscript up, if specified; this is the element's
superscriptshift attribute. This must return
null for a msub.
base of type
MathMLElementA MathMLElement representing the base of the script. This is the first child of the element.
subscript of type
MathMLElementA MathMLElement representing the subscript
of the script. This is the second child of a msub
or msubsup; retrieval must return null
for an msup.
Exceptions on Setting
DOMExceptionHIERARCHY_REQUEST_ERR: Raised when the element is
a msup.
superscript of type
MathMLElementA MathMLElement representing the
superscript of the script. This is the second child of a
msup or the third child of a
msubsup; retrieval must return null for an
msub.
Exceptions on Setting
DOMExceptionHIERARCHY_REQUEST_ERR: Raised when the element is
a msub.
Extends:
MathMLPresentationElement
This interface extends the MathMLPresentationElement interface for
the MathML underscript, overscript and
overscript-underscript pair elements
munder, mover and
munderover.
IDL Definition
interface MathMLUnderOverElement: MathMLPresentationElement {
attribute DOMString accentunder;
attribute DOMString accent;
attribute MathMLElement base;
attribute MathMLElement underscript;
attribute MathMLElement overscript;
};Attributes
accentunder of type
DOMStringEither "true" or "false" if
present; a string controlling whether underscript is drawn as an
"accent" or as a "limit", if specified; this is the
element's accentunder attribute. This must return
null for an mover.
accent of type
DOMStringEither "true" or "false" if
present; a string controlling whether overscript is drawn as an
"accent" or as a "limit", if specified; this is the
element's accent attribute. This must return
null for an munder.
base of type
MathMLElementA MathMLElement representing the base of the script. This is the first child of the element.
underscript of type
MathMLElementA MathMLElement representing the
underscript of the script. This is the second child of a
munder or munderover;
retrieval must return null for an mover.
Exceptions on Setting
DOMExceptionHIERARCHY_REQUEST_ERR: Raised when the element is a
mover.
overscript of type
MathMLElementA MathMLElement representing the
overscript of the script. This is the second child of a
mover or the third child of a munderover; retrieval must return null for an
munder.
Exceptions on Setting
DOMExceptionHIERARCHY_REQUEST_ERR: Raised when the element is a
munder.
Extends:
MathMLPresentationElement
This interface extends the MathMLPresentationElement interface for
the MathML multiscripts (including prescripts or
tensors) element mmultiscripts.
IDL Definition
interface MathMLMultiScriptsElement: MathMLPresentationElement {
attribute DOMString subscriptshift;
attribute DOMString superscriptshift;
attribute MathMLElement base;
readonly attribute MathMLNodeList prescripts;
readonly attribute MathMLNodeList scripts;
readonly attribute unsigned long numprescriptcolumns;
readonly attribute unsigned long numscriptcolumns;
MathMLElement getPreSubScript(in unsigned long colIndex);
MathMLElement getSubScript(in unsigned long colIndex);
MathMLElement getPreSuperScript(in unsigned long colIndex);
MathMLElement getSuperScript(in unsigned long colIndex);
MathMLElement insertPreSubScriptBefore(in unsigned long colIndex, in MathMLElement newScript);
MathMLElement setPreSubScriptAt(in unsigned long colIndex, in MathMLElement newScript);
MathMLElement insertSubScriptBefore(in unsigned long colIndex, in MathMLElement newScript);
MathMLElement setSubScriptAt(in unsigned long colIndex, in MathMLElement newScript);
MathMLElement insertPreSuperScriptBefore(in unsigned long colIndex, in MathMLElem