Skip to content

Commit

Permalink
Remove never-supported MathML features (#2691)
Browse files Browse the repository at this point in the history
* Remove never-supported MathML element <mglyph>

* Remove never-supported MathML <math> attribute overflow

* Remove never-supported MathML element <mlabeledtr>

* Remove never-supported MathML <mo> attributes form, largeop

* Remove never-supported MathML <mspace> attribute linebreak

* Remove never-supported MathML <mystyle> attribute decimalpoint

* Remove never-supported MathML <mtable> attributes: alignmentscope, columnwidth, equalcolumns, equalrows, groupalign, minlabelspacing, side

* Remove never-supported MathML <mtd> attribute groupalign

mdn/browser-compat-data#6958

* Remove never-supported MathML <mtr> attribute groupalign

mdn/browser-compat-data#6958

* Remove more <mglyph> mentions

* Remove more <mlabeledtr> mentions

* Remove more <math> attribute overflow mentions

* Remove more <mo> attributes form and largeop mentions

* Remove more <mspace> attribute linebreak mentions

* Remove more <mstyle> attribute decimalpoint mentions

* Remove more mentions of <mtable> attributes:

alignmentscope
columnwidth
equalcolumns
equalrows
groupalign
minlabelspacing
side

* Remove more <mtd> attribute groupalign mentions

* Remove more <mtr> attribute groupalign mentions

* Remove columnwidth dd left behind in 7b2b659
  • Loading branch information
ddbeck authored Mar 3, 2021
1 parent 4bd2f27 commit 44112ad
Show file tree
Hide file tree
Showing 35 changed files with 35 additions and 323 deletions.
16 changes: 0 additions & 16 deletions files/en-us/_wikihistory.json
Original file line number Diff line number Diff line change
Expand Up @@ -157485,14 +157485,6 @@
"jswisher"
]
},
"Web/MathML/Element/mglyph": {
"modified": "2020-10-15T21:07:19.831Z",
"contributors": [
"lucian95",
"fscholz",
"Sheppy"
]
},
"Web/MathML/Element/mi": {
"modified": "2020-12-08T06:58:12.774Z",
"contributors": [
Expand All @@ -157504,14 +157496,6 @@
"jswisher"
]
},
"Web/MathML/Element/mlabeledtr": {
"modified": "2020-10-15T21:09:21.139Z",
"contributors": [
"lucian95",
"fscholz",
"Sheppy"
]
},
"Web/MathML/Element/mmultiscripts": {
"modified": "2020-12-08T06:58:29.201Z",
"contributors": [
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/mozilla/firefox/releases/9/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ <h3 id="MathML">MathML</h3>

<ul>
<li>The non-standard <code>restyle</code> value for the <code>actiontype</code> attribute on {{ MathMLElement("maction") }} elements has been removed.</li>
<li>While still unsupported, using the {{ MathMLElement("mlabeledtr") }} element no longer breaks rendering completely. See {{ bug(689641) }} for progress on actual support of this element.</li>
<li>While still unsupported, using the <code>mlabeledtr</code> element no longer breaks rendering completely. See {{ bug(689641) }} for progress on actual support of this element.</li>
</ul>

<h3 id="Networking">Networking</h3>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,6 @@ <h3 id="Example_3">Example</h3>

</pre>

<h2 id="Use_alt_attribute_to_label_mglyph_elements">Use alt attribute to label mglyph  elements</h2>

<p>When writing equations with MathML, give each {{mathmlelement("mglyph")}} element an <code>alt</code> attribute containing a name that describes the symbol. Since <code>mglyph</code> elements are used for non-standard symbols without Unicode definitions, screen readers won't automatically be able to name them. Alternative text helps users of screen readers understand the symbol.</p>

<h2 id="Headings_must_be_labeled">Headings must be labeled</h2>

<p>Make sure that your headings have non-empty text content, and are not hidden, such as with CSS <code>display:none</code> or <code>aria-hidden=true</code>. Users of screen readers rely on headings to understand the structure and content of a document.</p>
Expand Down
65 changes: 5 additions & 60 deletions files/en-us/web/mathml/attribute/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@
{{ MathMLElement("mstack") }}</td>
<td>Specifies different alignments of several elements (see element pages for details).</td>
</tr>
<tr id="alignmentscope">
<td>{{ unimplemented_inline() }} <code>alignmentscope</code></td>
<td>{{ MathMLElement("mtable") }}</td>
<td>A Boolean value specifying whether table columns should act as alignment scopes or not.</td>
</tr>
<tr id="alt-*">
<td>{{ unimplemented_inline() }}<br>
<code>altimg</code><br>
Expand Down Expand Up @@ -81,7 +76,7 @@
</tr>
<tr id="columnalign">
<td><code>columnalign</code></td>
<td>{{ MathMLElement("mtable") }}, {{ MathMLElement("mtd") }}, {{ MathMLElement("mtr") }}, {{ MathMLElement("mlabeledtr") }}</td>
<td>{{ MathMLElement("mtable") }}, {{ MathMLElement("mtd") }}, {{ MathMLElement("mtr") }}</td>
<td>Specifies the horizontal alignment of table cells.</td>
</tr>
<tr id="columnlines">
Expand All @@ -99,21 +94,11 @@
<td>{{ MathMLElement("mtd") }}</td>
<td>A non-negative integer value that indicates over how many table columns the cell extends.</td>
</tr>
<tr id="columnwidth">
<td>{{ unimplemented_inline() }} <code>columnwidth</code></td>
<td>{{ MathMLElement("mtable") }}</td>
<td>Specifies the width of table columns.</td>
</tr>
<tr id="crossout">
<td>{{ unimplemented_inline() }} <code>crossout</code></td>
<td>{{ MathMLElement("mscarry") }}</td>
<td>Specifies what kind of line is drawn to cross out carries.</td>
</tr>
<tr id="decimalpoint">
<td>{{ unimplemented_inline() }} <code>decimalpoint</code></td>
<td>{{ MathMLElement("mstyle") }}</td>
<td>If the <code>decimalpoint</code> value is used to specify the <a href="#align">alignment</a>, this attribute is specifying the character for the alignment point within {{ MathMLElement("mstack") }} and {{ MathMLElement("mtable") }} columns.</td>
</tr>
<tr id="denomalign">
<td><code>denomalign</code> {{deprecated_inline}}</td>
<td>{{ MathMLElement("mfrac") }}</td>
Expand Down Expand Up @@ -148,26 +133,11 @@
<td>{{ MathMLElement("malignmark") }}</td>
<td></td>
</tr>
<tr id="equalcolumns">
<td>{{ unimplemented_inline() }} <code>equalcolumns</code></td>
<td>{{ MathMLElement("mtable") }}</td>
<td>A Boolean value indicating whether to force all columns to have the same total height.</td>
</tr>
<tr id="equalrows">
<td>{{ unimplemented_inline() }} <code>equalrows</code></td>
<td>{{ MathMLElement("mtable") }}</td>
<td>A Boolean value indicating whether to force all rows to have the same total height.</td>
</tr>
<tr id="fence">
<td><code>fence</code></td>
<td>{{ MathMLElement("mo") }}</td>
<td>A Boolean value specifying whether the operator is a fence (such as parentheses). There is no visual effect for this attribute.</td>
</tr>
<tr id="form">
<td>{{ unimplemented_inline() }} <code>form</code></td>
<td>{{ MathMLElement("mo") }}</td>
<td>Specifies the role of the operator in an enclosed expression.</td>
</tr>
<tr id="frame">
<td><code>frame</code></td>
<td>{{ MathMLElement("mtable") }}</td>
Expand All @@ -180,12 +150,12 @@
</tr>
<tr id="groupalign">
<td>{{ unimplemented_inline() }} <code>groupalign</code></td>
<td>{{ MathMLElement("maligngroup") }}, {{ MathMLElement("mtable") }}, {{ MathMLElement("mtd") }}, {{ MathMLElement("mtr") }}</td>
<td>{{ MathMLElement("maligngroup") }}</td>
<td></td>
</tr>
<tr id="height">
<td><code>height</code></td>
<td>{{ MathMLElement("mglyph") }}, {{ MathMLElement("mpadded") }}, {{ MathMLElement("mspace") }}</td>
<td>{{ MathMLElement("mpadded") }}, {{ MathMLElement("mspace") }}</td>
<td>Specifies the desired height. See <a href="/en-US/docs/MathML/Attributes/Values#Lengths">lengths</a> for possible values.</td>
</tr>
<tr id="href">
Expand Down Expand Up @@ -238,19 +208,14 @@
<td>{{ MathMLElement("mstyle") }}</td>
<td>Specifies the default <code>linebreakstyle</code> to use for infix operators.</td>
</tr>
<tr id="largeop">
<td><code>largeop</code></td>
<td>{{ MathMLElement("mo") }}</td>
<td>Specifies whether the operator should be drawn larger than normal.</td>
</tr>
<tr id="length">
<td><code>length</code></td>
<td>{{ MathMLElement("msline") }}</td>
<td></td>
</tr>
<tr id="linebreak">
<td>{{ unimplemented_inline() }} <code>linebreak</code></td>
<td>{{ MathMLElement("mo") }}, {{ MathMLElement("mspace") }}</td>
<td>{{ MathMLElement("mo") }}</td>
<td></td>
</tr>
<tr id="linebreakmultchar">
Expand Down Expand Up @@ -318,11 +283,6 @@
<td>{{ MathMLElement("mo") }}</td>
<td>The maximum size of the operator.</td>
</tr>
<tr id="minlabelspacing">
<td>{{ unimplemented_inline() }} <code>minlabelspacing</code></td>
<td>{{ MathMLElement("mtable") }}</td>
<td>A <a href="/en-US/docs/MathML/Attributes/Values">length value</a> specifying the minimum space between a <a href="Element/mlabeledtr" rel="internal">label</a> and the adjacent cell in the row.</td>
</tr>
<tr id="minsize">
<td><code>minsize</code></td>
<td>{{ MathMLElement("mo") }}</td>
Expand All @@ -348,11 +308,6 @@
<td>{{ MathMLElement("mfenced") }}</td>
<td>A string for the opening delimiter.</td>
</tr>
<tr id="overflow">
<td>{{ unimplemented_inline() }} <code>overflow</code></td>
<td>{{ MathMLElement("math") }}</td>
<td>If an expression is too long to fit in the allowed width, this attribute sets the preferred handling.</td>
</tr>
<tr id="position">
<td>{{ unimplemented_inline() }} <code>position</code></td>
<td>{{ MathMLElement("msgroup") }}, {{ MathMLElement("msrow") }}, {{ MathMLElement("mscarries") }}, {{ MathMLElement("msline") }}</td>
Expand Down Expand Up @@ -423,16 +378,6 @@
<td>{{ MathMLElement("msgroup") }}</td>
<td></td>
</tr>
<tr id="side">
<td>{{ unimplemented_inline() }} <code>side</code></td>
<td>{{ MathMLElement("mtable") }}</td>
<td>Specifies the position where {{ MathMLElement("mlabeledtr") }} label elements should be placed.</td>
</tr>
<tr id="src">
<td>{{ unimplemented_inline() }} <code>src</code></td>
<td>{{ MathMLElement("mglyph") }}</td>
<td>The location of the image resource.</td>
</tr>
<tr id="stackalign">
<td>{{ unimplemented_inline() }} <code>stackalign</code></td>
<td>{{ MathMLElement("mstack") }}</td>
Expand Down Expand Up @@ -465,7 +410,7 @@
</tr>
<tr id="width">
<td><code>width</code></td>
<td>{{ MathMLElement("mglyph") }}, {{ MathMLElement("mpadded") }}, {{ MathMLElement("mspace") }}, {{ MathMLElement("mtable") }}</td>
<td>{{ MathMLElement("mpadded") }}, {{ MathMLElement("mspace") }}, {{ MathMLElement("mtable") }}</td>
<td>Specifies the desired width. See <a href="/en-US/docs/MathML/Attributes/Values#Lengths">lengths</a> for possible values.</td>
</tr>
<tr id="xlink-href">
Expand Down
9 changes: 0 additions & 9 deletions files/en-us/web/mathml/element/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ <h3 id="F">F</h3>
<li>{{MathMLElement("mfrac")}} (Fraction)</li>
</ul>

<h3 id="G">G</h3>

<ul>
<li>{{MathMLElement("mglyph")}} (Displaying non-standard symbols)</li>
</ul>

<h3 id="I">I</h3>

<ul>
Expand All @@ -59,7 +53,6 @@ <h3 id="I">I</h3>
<h3 id="L">L</h3>

<ul>
<li>{{MathMLElement("mlabeledtr")}} (Labeled row in a table or a matrix)</li>
<li>{{MathMLElement("mlongdiv")}} (Long division notation)</li>
</ul>

Expand Down Expand Up @@ -150,7 +143,6 @@ <h3 id="Top-level_elements">Top-level elements</h3>
<h3 id="Token_elements">Token elements</h3>

<ul>
<li>{{MathMLElement("mglyph")}}</li>
<li>{{MathMLElement("mi")}}</li>
<li>{{MathMLElement("mn")}}</li>
<li>{{MathMLElement("mo")}}</li>
Expand Down Expand Up @@ -193,7 +185,6 @@ <h3 id="Tabular_math">Tabular math</h3>
<ul>
<li>{{MathMLElement("maligngroup")}}</li>
<li>{{MathMLElement("malignmark")}}</li>
<li>{{MathMLElement("mlabeledtr")}}</li>
<li>{{MathMLElement("mtable")}}</li>
<li>{{MathMLElement("mtd")}}</li>
<li>{{MathMLElement("mtr")}}</li>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/mathml/element/maction/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ <h2 id="Attributes">Attributes</h2>
<dt id="attr-class-id-style">class, id, style</dt>
<dd>Provided for use with <a href="/en-US/docs/CSS">stylesheets</a>.</dd>
<dt id="attr-displaystyle"><code>displaystyle</code></dt>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>largeop</code> and <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dt id="attr-href">href</dt>
<dd>Used to set a hyperlink to a specified URI.</dd>
<dt id="attr-mathbackground">mathbackground</dt>
Expand Down
3 changes: 0 additions & 3 deletions files/en-us/web/mathml/element/math/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@ <h2 id="Attributes">Attributes</h2>
<dt id="attr-mode">mode {{deprecated_inline}}</dt>
<dd>Deprecated in favor of the <a href="/en-US/docs/MathML/Element/math#attr-display">display attribute</a>.<br>
Possible values are: <code>display</code> (which has the same effect as <code>display="block"</code>) and <code>inline</code>.</dd>
<dt id="attr-overflow">overflow</dt>
<dd>Specifies how an expression behaves if it is too long to fit in the allowed width.<br>
Possible values are: <code>linebreak</code> (default), <code>scroll</code>, <code>elide</code>, <code>truncate</code>, <code>scale</code>.</dd>
</dl>

<h2 id="Examples">Examples</h2>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/mathml/element/menclose/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2 id="Attributes">Attributes</h2>
<dt id="attr-class-id-style">class, id, style</dt>
<dd>Provided for use with <a href="/en-US/docs/CSS">stylesheets</a>.</dd>
<dt id="attr-displaystyle"><code>displaystyle</code></dt>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>largeop</code> and <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dt id="attr-href">href</dt>
<dd>Used to set a hyperlink to a specified URI.</dd>
<dt id="attr-mathbackground">mathbackground</dt>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/mathml/element/merror/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h2 id="Attributes">Attributes</h2>
<dt id="attr-class-id-style">class, id, style</dt>
<dd>Provided for use with <a href="/en-US/docs/CSS">stylesheets</a>.</dd>
<dt id="attr-displaystyle"><code>displaystyle</code></dt>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>largeop</code> and <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dt id="attr-href">href</dt>
<dd>Used to set a hyperlink to a specified URI.</dd>
<dt id="attr-mathbackground">mathbackground</dt>
Expand Down
2 changes: 1 addition & 1 deletion files/en-us/web/mathml/element/mfrac/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h2 id="Attributes">Attributes</h2>
<dd>The alignment of the denominator under the fraction. Possible values are: <code>left</code>, <code>center</code> (default), and <code>right</code>.<br>
This attribute is deprecated and will be removed in the future. Use CSS <code><a href="/en-US/docs/Web/CSS/text-align">text-align</a></code> instead.</dd>
<dt id="attr-displaystyle"><code>displaystyle</code></dt>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>largeop</code> and <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dt id="attr-href"><code>href</code></dt>
<dd>Used to set a hyperlink to a specified URI.</dd>
<dt id="attr-linethickness"><code>linethickness</code></dt>
Expand Down
68 changes: 0 additions & 68 deletions files/en-us/web/mathml/element/mglyph/index.html

This file was deleted.

2 changes: 1 addition & 1 deletion files/en-us/web/mathml/element/mi/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h2 id="Attributes">Attributes</h2>
<dt id="attr-dir">dir</dt>
<dd>The text direction. Possible values are either <code>ltr</code> (left to right) or <code>rtl</code> (right to left).</dd>
<dt id="attr-displaystyle"><code>displaystyle</code></dt>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>largeop</code> and <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dd>A Boolean value specifying whether more vertical space is used for displayed equations or, if set to <code>false</code>, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when <code>displaystyle</code> is set to <code>true</code>. See also <code>movablelimits</code> on {{ MathMLElement("mo") }}.</dd>
<dt id="attr-href">href</dt>
<dd>Used to set a hyperlink to a specified URI.</dd>
<dt id="attr-mathbackground">mathbackground</dt>
Expand Down
Loading

0 comments on commit 44112ad

Please sign in to comment.