You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Combining and summarizing ideas from both #68 and #74, a tabulation of potential MathML4 elements and their attributes is presented. This document is a work in progress. Comments and discussion are welcomed.
The <math> element
Attribute
Values
Default
Description
Status
id
string
none
The id attribute specifies its element’s unique identifier (ID).
Specifies whether the enclosed MathML expression should be rendered as a separate vertical block (in display style) or inline, aligned with adjacent text.
-
maxwidth
length
available width
Specifies the maximum width to be used for linebreaking. The default is the maximum width available in the surrounding environment. If that value cannot be determined, the renderer should assume an infinite rendering width.
Specifies the preferred handing in cases where an expression is too long to fit in the allowed width.
-
altimg
URI
none
Provides a URI referring to an image to display as a fall-back for user agents that do not support embedded MathML.
deprecate?
altimg-width
length
width of altimg
Specifies the width to display altimg, scaling the image if necessary; See altimg-height.
deprecate?
altimg-height
length
height of altimg
Specifies the height to display altimg, scaling the image if necessary; if only one of the attributes altimg-width and altimg-height are given, the scaling should preserve the image's aspect ratio; if neither attribute is given, the image should be shown at its natural size.
deprecate?
altimg-valign
length | "top" | "middle" | "bottom"
0ex
Specifies the vertical alignment of the image with respect to adjacent inline material.
deprecate?
alttext
string
none
Provides a textual alternative as a fall-back for user agents that do not support embedded MathML or images.
deprecate?
cdgroup
URI
none
Specifies a CD group file that acts as a catalogue of CD bases for locating OpenMath content dictionaries of csymbol, annotation, and annotation-xml elements in this math element.
Instead of the alttext attribute on the top-level <math> element, “presentation” annotations of type text/plain could be utilized.
<mathid="eq1">
<semantics>
<mrow>default</mrow>
<annotationencoding="text/plain">Alternative text version of expression.</annotation>
</semantics>
</math>
<mathid="eq1">
<semantics>
<mrow>default</mrow>
<annotationencoding="text/plain"lang="en fr es de"pattern="eq1-{lang}.txt" />
</semantics>
</math>
Deprecating altimg, altimg-width, altimg-height, and altimg-valign
Instead of the altimg, altimg-width, altimg-height, altimg-valign attributes on the top-level <math> element, “presentation” annotations of types image/* could be utilized with CSS styling.
I'm definitely a fan of deprecating cdgroup as suggested. Without it, even an unattached <csymbol> will have a meaningful definition, which helps a lot for programmatic manipulation of content mathml elements.
[minor admin] In the MathML Full WG meeting on Sep 28th, 2023, we agreed to re-title issues scheduled for the next charter with "MathML-Next", to avoid confusion.
dginev
changed the title
MathML4 Elements and Attributes
MathML-Next Elements and Attributes
Sep 28, 2023
Introduction
Combining and summarizing ideas from both #68 and #74, a tabulation of potential MathML4 elements and their attributes is presented. This document is a work in progress. Comments and discussion are welcomed.
The
<math>
elementid
See also: HTML5 id attribute
style
class
See also: HTML5 class attribute
display
maxwidth
overflow
altimg
altimg-width
altimg
altimg
, scaling the image if necessary; Seealtimg-height
.altimg-height
altimg
altimg
, scaling the image if necessary; if only one of the attributesaltimg-width
andaltimg-height
are given, the scaling should preserve the image's aspect ratio; if neither attribute is given, the image should be shown at its natural size.altimg-valign
alttext
cdgroup
csymbol
,annotation
, andannotation-xml
elements in this math element.src
See also: HTML5
<img>
element and<object>
elementDeprecating
alttext
Instead of the
alttext
attribute on the top-level<math>
element, “presentation” annotations of typetext/plain
could be utilized.Deprecating
altimg
,altimg-width
,altimg-height
, andaltimg-valign
Instead of the
altimg
,altimg-width
,altimg-height
,altimg-valign
attributes on the top-level<math>
element, “presentation” annotations of typesimage/*
could be utilized with CSS styling.The
<semantics>
elementannotated
The
<annotation>
and<annotation-xml>
elementsid
See also: HTML5 id attribute
definitionURL
encoding
cd
name
src
lang
notation
media
q
pattern
src
attribute.method
See also: HTML5
<form>
element.enctype
enctype
attribute is an enumerated attribute that specifies how data should be encoded in an HTTP POST.See also: HTML5
<form>
element.accept-charset
accept-charset
attribute gives the character encodings that are to be used in an HTTP POST.See also: HTML5
<form>
element.data
Two annotation elements or one?
Do we need two annotation elements,
<annotation>
and<annotation-xml>
, or might one element,<annotation>
, suffice?The text was updated successfully, but these errors were encountered: