A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://webplatform.github.io/docs/mathml/elements/maction below:

maction · WebPlatform Docs

maction Summary

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 Table
DOM Interface
mathml
Examples

This 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
MathML 3.0
W3C Recommendation
Attributes
actiontype

The action which specifies what happens for this element. Possible values are:

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.

Attributions

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