Skip to content

Commit 78d599a

Browse files
committed
specify alttext fallback for non-mathml, rename and rewrite intent+arg section as suggested by @bkardell
1 parent 36eb7c8 commit 78d599a

File tree

1 file changed

+26
-31
lines changed

1 file changed

+26
-31
lines changed

index.html

+26-31
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,11 @@ <h4>The Top-Level <code>&lt;math&gt;</code> Element</h4>
233233
The <code>&lt;math&gt;</code>
234234
element accepts the attributes described
235235
in <a href="#global-attributes"></a> as well as the
236-
following attribute:
236+
following attributes:
237237
</p>
238238
<ul>
239239
<li><a>display</a></li>
240+
<li><a>alttext</a></li>
240241
</ul>
241242
<p>
242243
The
@@ -257,6 +258,13 @@ <h4>The Top-Level <code>&lt;math&gt;</code> Element</h4>
257258
attribute is absent or has an invalid value, the User Agent
258259
stylesheet treats it the same as <code>inline</code>.
259260
</p>
261+
262+
263+
<p>Systems implementing MathML Core may ignore
264+
<dfn><code>alttext</code></dfn>, however it is used by as
265+
alternative text by some legacy systems that do not
266+
implement math layout.</p>
267+
260268
<p>
261269
If the element does not have its computed
262270
<a><code>display</code> property</a> equal to
@@ -317,13 +325,6 @@ <h4>The Top-Level <code>&lt;math&gt;</code> Element</h4>
317325
</p>
318326
<pre class="css" data-include="user-agent-stylesheet/math.css"></pre>
319327

320-
<p>The <code>&lt;math&gt;</code>
321-
element should also accept following attribute as described in
322-
<a href="#the-intent-and-arg-attributes"></a>.</p>
323-
324-
<ul>
325-
<li><a><code>alttext</code></a></li>
326-
</ul>
327328

328329
</section>
329330
<section id="types-for-mathml-attribute-values">
@@ -375,9 +376,8 @@ <h4>Global Attributes</h4>
375376
<li><a><code>scriptlevel</code></a></li>
376377
<li><a><code>style</code></a></li>
377378
<li><a><code>tabindex</code></a></li>
378-
<li><a><code>intent</code></a></li>
379-
<li><a><code>arg</code></a></li>
380379
<li><a href="#event-handler-content-attributes"><code>on*</code> event handler attributes</a></li>
380+
<li>additional attributes, as described in <a href="#other-valid-attributes"></a></li>
381381
</ul>
382382
</section>
383383
<section id="attributes-common-to-html-and-mathml-elements">
@@ -643,20 +643,17 @@ <h4>The <code>displaystyle</code> and <code>scriptlevel</code> attributes</h4>
643643
and <code>false</code> and 2, respectively.
644644
</div>
645645
</section>
646-
<section id="the-intent-and-arg-attributes">
647-
<h4>The <code>intent</code>, <code>arg</code> and <code>alttext</code> attributes</h4>
648-
<p>MathML Core Level 1 defines no behavior for
649-
<dfn><code>intent</code></dfn>,
650-
<dfn><code>arg</code></dfn> and
651-
<dfn><code>alttext</code></dfn> however these attributes should
652-
be accepted as valid. [[MATHML4]] specifies how
653-
<code>intent</code> and <code>arg</code>
654-
may be used to improve the accessibilty of
655-
Presentation MathML. The <code>alttext</code> attribute may be used as alternative text by systems that do not implement MathML.</p>
656-
<p>
657-
<p>Future levels of MathML Core may
658-
specify processing of these attributes in Web Platform
659-
implementations.
646+
<section id="other-valid-attributes">
647+
<h4>Attributes Reserved as Valid</h4>
648+
<p>The attributes
649+
<code>intent</code> and <code>arg</code>
650+
are reserved as valid attributes.</p>
651+
<p>While MathML Core Level 1 defines no behavior for these
652+
attributes, and no functionality is currently implied by
653+
this specification, validators must treat them as
654+
valid. Future versions of this specification may or may not
655+
define them. Authors should be aware that they are currently
656+
in development and subject to change.
660657
</p>
661658
</section>
662659
<section>
@@ -5653,9 +5650,8 @@ <h3>Operator Dictionary</h3>
56535650
</li>
56545651
</ul>
56555652
</li>
5656-
</ul>
5657-
</li>
5658-
</ol>
5653+
</ol>
5654+
</section>
56595655
<div id="operator-dictionary-entries-compact"
56605656
data-include="tables/operator-dictionary-compact.html"></div>
56615657

@@ -5679,7 +5675,8 @@ <h3>Operator Dictionary</h3>
56795675
<a href="#operator-dictionary-categories-hexa-table"></a>
56805676
rather than on each large subtable
56815677
of <a href="#operator-dictionary-category-table"></a>.
5682-
</p>
5678+
</li>
5679+
</ul>
56835680
</div>
56845681
<p id="stretchy-operator-axis">
56855682
The <dfn>intrinsic stretch axis</dfn> a Unicode character
@@ -5953,7 +5950,7 @@ <h2>Security Considerations</h2>
59535950

59545951
<p>This feature is not available in MathML Core, where
59555952
the <a><code>&lt;maction&gt;</code></a> element essentially behaves
5956-
like an <a><code>&lt;mrow&gt;</code></a> container with extra style.
5953+
like an <a><code>&lt;mrow&gt;</code></a> container with extra style.</p>
59575954
</div>
59585955
<p>An attacker can try to hang the UA by inserting very large
59595956
stretchy operators, effectively making the algorithm
@@ -6032,7 +6029,6 @@ <h2>Privacy Considerations</h2>
60326029
the UI serif font provide Asian glyphs:</p>
60336030
<pre data-include="examples/example-font-information-leakage-2.html"
60346031
data-include-format="text"></pre>
6035-
<p>
60366032
</div>
60376033
<div class="example" id="font-information-leakage-3">
60386034
<p>The following
@@ -6046,7 +6042,6 @@ <h2>Privacy Considerations</h2>
60466042
</p>
60476043
<pre data-include="examples/example-font-information-leakage-3.html"
60486044
data-include-format="text"></pre>
6049-
<p>
60506045
</div>
60516046
<p>This specification relies on information from
60526047
<a href="#opentype-math-table"></a> to render MathML content. One

0 commit comments

Comments
 (0)