Skip to content

Commit fa21e41

Browse files
Merge pull request #558 from w3c/a-element
a element for #555
2 parents 7564d7d + df11db2 commit fa21e41

2 files changed

Lines changed: 29 additions & 3 deletions

File tree

src/fundamentals.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ <h4 id="fund_globatt">Attributes Shared by all MathML Elements</h4>
601601

602602
<tr>
603603
<td colspan="2" class="attdesc">
604-
Can be used to establish the element as a hyperlink to the specified <em>URI</em>.
604+
Can be used to establish the element as a hyperlink to the specified <em>URI</em>. Note that this is not supported on all elements in MathML Core, but is supported on the <a href="#presm_mrow"><code class="element">a</code></a> element.
605605
</td>
606606
</tr>
607607
</tbody>

src/presentation-markup.html

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3612,12 +3612,15 @@ <h3 id="presm_genlayout">General Layout Schemata</h3>
36123612

36133613
<section>
36143614
<h4 id="presm_mrow">Horizontally Group Sub-Expressions
3615-
<a class="coreyes" href="https://w3c.github.io/mathml-core/spec.html#dfn-mrow"><code class="defn starttag">&lt;mrow&gt;</code></a></h4>
3615+
<a class="coreyes" href="https://w3c.github.io/mathml-core/spec.html#dfn-mrow"><code class="defn starttag">&lt;mrow&gt;</code></a>,
3616+
<a class="coreyes" href="https://w3c.github.io/mathml-core/spec.html#dfn-a"><code class="defn starttag">&lt;a&gt;</code></a>
3617+
</h4>
36163618

36173619
<section>
36183620
<h5 id="presm_genlayout_desc">Description</h5>
36193621

3620-
<p>An <code class="element">mrow</code> element is used to group together any
3622+
<p>An <code class="element">mrow</code> or <code class="element">a</code>
3623+
element is used to group together any
36213624
number of sub-expressions, usually consisting of one or more <code class="element">mo</code> elements acting as <q>operators</q> on one
36223625
or more other expressions that are their <q>operands</q>.</p>
36233626

@@ -3650,6 +3653,12 @@ <h5 id="presm_genlayout_desc">Description</h5>
36503653
although the control of linebreaking is effected through attributes
36513654
on other elements (see <a href="#presm_linebreaking"></a>).
36523655
</p>
3656+
3657+
<p>In MathML 4 <code class="element">mrow</code> and
3658+
<code class="element">a</code> have identical behavior, however
3659+
<code class="element">a</code>has been added for compatibility with MathML
3660+
Core. MathML Core only supprts the <code class="attname">href</code>
3661+
attribute on the <code class="element">a</code> element.</p>
36533662

36543663
</section>
36553664

@@ -3817,6 +3826,23 @@ <h5 id="presm_grouping_sub_expressions_ex">Examples</h5>
38173826
<p>In this case, a nested <code class="element">mrow</code> is required inside
38183827
the parentheses, since parentheses and commas, thought of as fence and
38193828
separator <q>operators</q>, do not act together on their arguments.</p>
3829+
3830+
<p>Hyperref links that are compatible with MathML Core may be specified by using the
3831+
<code class="starttag">&lt;a&gt;</code> element rather than
3832+
<code class="starttag">&lt;mrow&gt;</code>:</p>
3833+
<div class="example mathml mmlcore">
3834+
<pre>
3835+
&lt;a href="https://openmath.org/cd/transc1.html#arccsch"&gt;
3836+
&lt;mi&gt;arccsch&lt;/mi&gt;
3837+
&lt;mrow&gt;
3838+
&lt;mo&gt;(&lt;/mo&gt;
3839+
&lt;mi&gt;z&lt;/mi&gt;
3840+
&lt;mo&gt;)&lt;/mo&gt;
3841+
&lt;/mrow&gt;
3842+
&lt;/a&gt;
3843+
</pre>
3844+
</div>
3845+
38203846
</section>
38213847
</section>
38223848

0 commit comments

Comments
 (0)