44/*************************************************************
55 *
66 * MathJax/jax/output/SVG/autoload/mglyph.js
7- *
7+ *
88 * Implements the SVG output for <mglyph> elements.
99 *
1010 * ---------------------------------------------------------------------
11- *
11+ *
1212 * Copyright (c) 2011-2018 The MathJax Consortium
13- *
13+ *
1414 * Licensed under the Apache License, Version 2.0 (the "License");
1515 * you may not use this file except in compliance with the License.
1616 * You may obtain a copy of the License at
17- *
17+ *
1818 * http://www.apache.org/licenses/LICENSE-2.0
19- *
19+ *
2020 * Unless required by applicable law or agreed to in writing, software
2121 * distributed under the License is distributed on an "AS IS" BASIS,
2222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -30,7 +30,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
3030 SVG = MathJax . OutputJax . SVG ,
3131 BBOX = SVG . BBOX ,
3232 LOCALE = MathJax . Localization ;
33-
33+
3434 var XLINKNS = "http://www.w3.org/1999/xlink" ;
3535
3636 BBOX . MGLYPH = BBOX . Subclass ( {
@@ -51,7 +51,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
5151 this . d = this . D = - y ; this . l = 0 ;
5252 }
5353 } ) ;
54-
54+
5555 MML . mglyph . Augment ( {
5656 toSVG : function ( variant , scale ) {
5757 this . SVGgetStyles ( ) ; var svg = this . SVG ( ) , img , err ;
@@ -82,7 +82,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
8282 } else {
8383 var mu = this . SVGgetMu ( svg ) ;
8484 svg . Add ( BBOX . MGLYPH ( this . img . img , values . width , values . height , values . valign , mu ,
85- { alt : values . alt , title :values . alt } ) ) ;
85+ { 'aria-label' :values . alt } ) ) ;
8686 }
8787 }
8888 svg . Clean ( ) ;
@@ -98,9 +98,9 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
9898 } , {
9999 GLYPH : { } // global list of all loaded glyphs
100100 } ) ;
101-
101+
102102 MathJax . Hub . Startup . signal . Post ( "SVG mglyph Ready" ) ;
103103 MathJax . Ajax . loadComplete ( SVG . autoloadDir + "/mglyph.js" ) ;
104-
104+
105105} ) ;
106106
0 commit comments