The MathML maction element provides a possibility to bind actions to (sub-) expressions. The action itself is specified by the actiontype attribute, which accepts several values. To specify which child elements are addressed by the action, you can make use of the selection attribute.
Overview TableThis example demonstrates a simple usage of maction:
<math>
<maction actiontype="toggle">
<mfrac>
<mn>6</mn>
<mn>8</mn>
</mfrac>
<mfrac>
<mrow>
<mn>3</mn>
<mo>⋅</mo>
<mn>2</mn>
</mrow>
<mrow>
<mn>4</mn>
<mo>⋅</mo>
<mn>2</mn>
</mrow>
</mfrac>
<mfrac>
<mn>3</mn>
<mn>4</mn>
</mfrac>
</maction>
</math>
Related specifications
The action which specifies what happens for this element. Possible values are:
statusline: If there is a click on the expression or the reader moves the pointer over it, the message is sent to the browser’s status line. The syntax is: <maction actiontype="statusline"> expression message </maction>.
toggle: When there is a click on the subexpression, the rendering alternates the display of selected subexpressions. Therefore each click increments the selection value.
The syntax is: <maction actiontype="toggle" selection="positive-integer" > expression1 expression2 expressionN </maction>.
The syntax is: <maction actiontype="tooltip"> expression message </maction>.
selection
The child element which is addressed by the action. The default value is 1 which is the first child element.
Mozilla Developer Network : Article
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4