HTML5 MathML
HTML5 MathML actiontype Attribute
The actiontype attribute on the <maction> element selects which interactive behaviour applies to its content, such as toggling between alternatives.
Definition and usage
The actiontype attribute is required on <maction>. Historically defined values include toggle (cycle through child expressions on click), statusline (show a message in the status bar) and tooltip (show a hover tooltip). It works together with the selection attribute, which chooses the initially displayed child.
Which elements use it
- <maction> - specifies the interactive action to perform.
Example
<math>
<maction actiontype="toggle" selection="1">
<mfrac><mn>3</mn><mn>4</mn></mfrac>
<mn>0.75</mn>
</maction>
</math>actiontype="toggle" would let a user click to switch between the fraction and its decimal form; selection="1" shows the fraction first.
MathML Core does not require browsers to implement <maction> behaviour, so actiontype interactions generally do not work in modern browsers. Only the selected child is shown.
