From 50260bbcac76f3c434f9496b49fb11dfe81f24d6 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Fri, 11 Sep 2015 18:00:56 -0400 Subject: [PATCH 01/14] Localize 'Close Window' string --- unpacked/extensions/MathMenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js index 48d9c020f..7a7a949c6 100644 --- a/unpacked/extensions/MathMenu.js +++ b/unpacked/extensions/MathMenu.js @@ -1020,7 +1020,7 @@ ["span",{className:"MathJax_MenuClose",id:"MathJax_AboutClose", onclick:MENU.About.Remove, onkeydown: MENU.About.Keydown, tabIndex: 0, - "aria-label": "Close", "aria-describedby": "Close window"}, + "aria-label": "Close", "aria-describedby": _("CloseWindow","Close window")}, [["span",{},"\u00D7"]]] ]); about.focus(); From c2ef3d9312e371f7f9e6139b10a5cc518ba17d11 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 06:57:24 -0400 Subject: [PATCH 02/14] Localize 'Close Window' in HelpDialog --- unpacked/extensions/HelpDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/extensions/HelpDialog.js b/unpacked/extensions/HelpDialog.js index 2c16eb1ca..31319614a 100644 --- a/unpacked/extensions/HelpDialog.js +++ b/unpacked/extensions/HelpDialog.js @@ -155,8 +155,8 @@ ]], ["a",{href:"http://www.mathjax.org/"},["www.mathjax.org"]], ["span",{id: "MathJax_HelpClose", onclick: HELP.Remove, - onkeydown: HELP.Keydown, tabIndex: 0, - "aria-label": "Close", "aria-describedby": "Close window"}, + onkeydown: HELP.Keydown, tabIndex: 0, "aria-label": "Close", + "aria-describedby": LOCALE._(["HelpDialog","CloseWindow"],"Close window")}, [["span",{},["\u00D7"]]] ] ])); From 2756525e7312e53a6b9c5c2936101c9be58aab3c Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 06:58:06 -0400 Subject: [PATCH 03/14] Make sure aria attributes use setAttribute so they appear properly in the DOM --- unpacked/MathJax.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index f81670339..62fba32df 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -1048,10 +1048,11 @@ MathJax.HTML = { {def.style[id.replace(/-([a-z])/g,this.ucMatch)] = style[id]}} } MathJax.Hub.Insert(obj,def); + for (var id in def) {if (id.substr(0,5) === "aria-") obj.setAttribute(id,def[id])} } if (contents) { if (!(contents instanceof Array)) {contents = [contents]} - for (var i = 0; i < contents.length; i++) { + for (var i = 0, m = contents.length; i < m; i++) { if (contents[i] instanceof Array) { obj.appendChild(this.Element(contents[i][0],contents[i][1],contents[i][2])); } else if (type === "script") { // IE throws an error if script is added as a text node From bde96342e6d2305b8cb612291cfeca554d6b23b8 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 06:59:50 -0400 Subject: [PATCH 04/14] Move .MathJax:focus to right after .MathJax CSS, and make sure full-width equations are full width when converted to display:inline-block --- unpacked/jax/output/HTML-CSS/jax.js | 36 ++++++++++++++--------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/unpacked/jax/output/HTML-CSS/jax.js b/unpacked/jax/output/HTML-CSS/jax.js index 5dec3a2d0..2d859fdd1 100644 --- a/unpacked/jax/output/HTML-CSS/jax.js +++ b/unpacked/jax/output/HTML-CSS/jax.js @@ -265,6 +265,22 @@ border: 0, padding: 0, margin: 0 }, + // Focus elements for keyboard tabbing. + ".MathJax:focus": ( + (MathJax.Hub.Browser.isSafari || MathJax.Hub.Browser.isChrome) ? { + display:"inline-block", + outline:"none", + margin:"-3px", + padding:"3px", + "-webkit-box-shadow": "0px 0px 5px #345, inset 0px 0px 5px #345", + "box-shadow": "0px 0px 5px #345, inset 0px 0px 5px #345" + } : { + display:"inline-block", + outline:"none", + border:"1px dotted", + margin:"-1px" + }), + ".MathJax_Display": { position: "relative", display: "block!important", @@ -345,22 +361,6 @@ filter: "none", opacity:1, background:"transparent" // for IE }, - // Focus elements for keyboard tabbing. - ".MathJax:focus": ( - (MathJax.Hub.Browser.isSafari || MathJax.Hub.Browser.isChrome) ? { - display:"inline-block", - outline:"none", - margin:"-3px", - padding:"3px", - "-webkit-box-shadow": "0px 0px 5px #345, inset 0px 0px 5px #345", - "box-shadow": "0px 0px 5px #345, inset 0px 0px 5px #345" - } : { - display:"inline-block", - outline:"none", - border:"1px dotted", - margin:"-1px" - }), - // // Used for testing web fonts against the default font used while // web fonts are loading @@ -2876,7 +2876,7 @@ MML.math.Augment({ toHTML: function (span,node,phase) { - var stack, box, html, math; + var stack, box, html, math, SPAN = span; // // Phase I lays out the math, but doesn't measure the final math yet // (that is done for a chunk at a time, to avoid reflows) @@ -2934,7 +2934,7 @@ if (math && math.bbox.width != null) { span.style.minWidth = (math.bbox.minWidth || span.style.width); span.style.width = math.bbox.width; - box.style.width = stack.style.width = "100%"; + box.style.width = stack.style.width = SPAN.style.width = "100%"; } // // Add color (if any) From b1647c98e7ba7d1c895b224baf2624088913612a Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 07:30:54 -0400 Subject: [PATCH 05/14] Make sure CommonHTML output is marked by isMathJax --- unpacked/jax/output/CommonHTML/jax.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/unpacked/jax/output/CommonHTML/jax.js b/unpacked/jax/output/CommonHTML/jax.js index 65fa68910..f3d070fba 100644 --- a/unpacked/jax/output/CommonHTML/jax.js +++ b/unpacked/jax/output/CommonHTML/jax.js @@ -323,6 +323,7 @@ Element: function (type,def,content) { if (type.substr(0,4) === "mjx-") { if (!def) def = {}; + if (def.isMathJax == null) def.isMathJax = true; if (def.className) def.className = type+" "+def.className; else def.className = type; } return this.HTMLElement("span",def,content); @@ -379,7 +380,7 @@ // // Zoom box requires an outer container to get the positioning right. // - var NODE = CHTML.Element("mjx-chtml",{className:"MJXc-display"}); + var NODE = CHTML.Element("mjx-chtml",{className:"MJXc-display",isMathJax:false}); NODE.appendChild(node); node = NODE; } if (HUB.Browser.noContextMenu) { @@ -579,7 +580,7 @@ // Re-render at larger size // this.getMetrics(jax); - var node = CHTML.addElement(span,"mjx-chtml",{style:{"font-size":Math.floor(CHTML.scale*100)+"%"}}); + var node = CHTML.addElement(span,"mjx-chtml",{style:{"font-size":Math.floor(CHTML.scale*100)+"%"},isMathJax:false}); this.idPostfix = "-zoom"; jax.root.toCommonHTML(node); this.idPostfix = ""; // // Adjust margins to prevent overlaps at the edges From 9d508c72d83a09491bb37a0278ad6164067b9029 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 08:38:02 -0400 Subject: [PATCH 06/14] Also make 'role' use setAttribute() --- unpacked/MathJax.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 62fba32df..4f0668536 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -1048,7 +1048,9 @@ MathJax.HTML = { {def.style[id.replace(/-([a-z])/g,this.ucMatch)] = style[id]}} } MathJax.Hub.Insert(obj,def); - for (var id in def) {if (id.substr(0,5) === "aria-") obj.setAttribute(id,def[id])} + for (var id in def) { + if (id === "role" || id.substr(0,5) === "aria-") obj.setAttribute(id,def[id]); + } } if (contents) { if (!(contents instanceof Array)) {contents = [contents]} From 0cf2a52745c4691e1edf46207c7a06c02938e236 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 08:58:20 -0400 Subject: [PATCH 07/14] Add styling to make mouse-based menu display look as the same as before (no focus highlighting, though focus is still set) --- unpacked/extensions/MathMenu.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js index 7a7a949c6..719638cf4 100644 --- a/unpacked/extensions/MathMenu.js +++ b/unpacked/extensions/MathMenu.js @@ -152,12 +152,21 @@ ".MathJax_MenuDisabled": { color:"GrayText" }, - ".MathJax_MenuActive": { "background-color": (isPC ? "Highlight" : "#606872"), color: (isPC ? "HighlightText" : "white") }, + ".MathJax_MenuDisabled:focus, .MathJax_MenuLabel:focus": { + "background-color": "#E8E8E8" + }, + ".MathJax_ContextMenu:focus": { + outline:"none" + }, + ".MathJax_ContextMenu .MathJax_MenuItem:focus": { + outline:"none" + }, + "#MathJax_AboutClose": { top:".2em", right:".2em" }, @@ -282,6 +291,8 @@ menuItem: this, className: "MathJax_Menu", onkeydown: MENU.Keydown, role: "navigation" }); + if (event.type === "contextmenu" || event.type === "mouseover") + menu.className += " MathJax_ContextMenu"; if (!forceLTR) {MathJax.Localization.setCSS(menu)} for (var i = 0, m = this.items.length; i < m; i++) {this.items[i].Create(menu)} From 8645c8ce94f523b4f049af5d36e365c09ffee97e Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 10:08:50 -0400 Subject: [PATCH 08/14] Don't show focus on dialog boxes opened by mouse events (only keyboard), and don't show focus for close icon when clicking with mouse --- unpacked/extensions/HelpDialog.js | 13 ++++++++++--- unpacked/extensions/MathMenu.js | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) diff --git a/unpacked/extensions/HelpDialog.js b/unpacked/extensions/HelpDialog.js index 31319614a..292f15d1f 100644 --- a/unpacked/extensions/HelpDialog.js +++ b/unpacked/extensions/HelpDialog.js @@ -58,6 +58,9 @@ "-khtml-box-shadow":"0px 10px 20px #808080", // Konqueror filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')" // IE }, + "#MathJax_Help.MathJax_MousePost": { + outline:"none" + }, "#MathJax_HelpContent": { overflow:"auto", "text-align":"left", "font-size":"80%", @@ -93,6 +96,9 @@ }, "#MathJax_HelpClose:hover span": { "background-color":"#CCC!important" + }, + "#MathJax_HelpClose:hover:focus": { + outline:"none" } } }); @@ -100,11 +106,11 @@ /* * Handle the Help Dialog box */ - HELP.Dialog = function () { - LOCALE.loadDomain("HelpDialog",["Post",HELP]); + HELP.Dialog = function (event) { + LOCALE.loadDomain("HelpDialog",["Post",HELP,event]); }; - HELP.Post = function () { + HELP.Post = function (event) { this.div = MENU.Background(this); var help = HTML.addElement(this.div,"div",{ id: "MathJax_Help", tabIndex: 0, onkeydown: HELP.Keydown @@ -160,6 +166,7 @@ [["span",{},["\u00D7"]]] ] ])); + if (event.type === "mouseup") help.className += " MathJax_MousePost"; help.focus(); LOCALE.setCSS(help); var doc = (document.documentElement||{}); diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js index 719638cf4..51385c018 100644 --- a/unpacked/extensions/MathMenu.js +++ b/unpacked/extensions/MathMenu.js @@ -93,6 +93,9 @@ "-khtml-box-shadow":"0px 10px 20px #808080", // Konqueror filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=2, OffY=2, Color='gray', Positive='true')" // IE }, + "#MathJax_About.MathJax_MousePost": { + outline:"none" + }, ".MathJax_Menu": { position:"absolute", "background-color":"white", color:"black", @@ -202,6 +205,9 @@ }, ".MathJax_MenuClose:hover span": { "background-color":"#CCC!important" + }, + ".MathJax_MenuClose:hover:focus": { + outline:"none" } } }); @@ -1001,7 +1007,7 @@ /* * Handle the ABOUT box */ - MENU.About = function () { + MENU.About = function (event) { var HTMLCSS = OUTPUT["HTML-CSS"] || {}; var font = MENU.About.GetFont(); var format = MENU.About.GetFormat(); @@ -1034,6 +1040,7 @@ "aria-label": "Close", "aria-describedby": _("CloseWindow","Close window")}, [["span",{},"\u00D7"]]] ]); + if (event.type === "mouseup") about.className += " MathJax_MousePost"; about.focus(); MathJax.Localization.setCSS(about); var doc = (document.documentElement||{}); @@ -1088,9 +1095,9 @@ /* * Handle the MathJax HELP menu */ - MENU.Help = function () { + MENU.Help = function (event) { AJAX.Require("[MathJax]/extensions/HelpDialog.js", - function () {MathJax.Extension.Help.Dialog()}); + function () {MathJax.Extension.Help.Dialog({type:event.type})}); }; /* From 49e0852d36310f05a23b47068902d51a373a9cc5 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 10:16:24 -0400 Subject: [PATCH 09/14] Don't focus the math element if the menu was closed via a mouse click. --- unpacked/extensions/MathMenu.js | 1 + 1 file changed, 1 insertion(+) diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js index 51385c018..05a50b56d 100644 --- a/unpacked/extensions/MathMenu.js +++ b/unpacked/extensions/MathMenu.js @@ -383,6 +383,7 @@ HOVER.UnHover(MENU.jax); } MENU.Unfocus(menu); + if (event.type === "mousedown") MENU.CurrentNode().blur(); return FALSE(event); }, From 3fa5b2d2ad4856fbac4023002bde6767f92f4641 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 17:33:56 -0400 Subject: [PATCH 10/14] Don't let svg element be focusable in IE. --- unpacked/jax/output/SVG/jax.js | 1 + 1 file changed, 1 insertion(+) diff --git a/unpacked/jax/output/SVG/jax.js b/unpacked/jax/output/SVG/jax.js index 1718cc829..658934313 100644 --- a/unpacked/jax/output/SVG/jax.js +++ b/unpacked/jax/output/SVG/jax.js @@ -2103,6 +2103,7 @@ if (alttext && !svg.element.getAttribute("aria-label")) span.setAttribute("aria-label",alttext); if (!svg.element.getAttribute("role")) span.setAttribute("role","math"); // span.setAttribute("tabindex",0); // causes focus outline, so disable for now + svg.element.setAttribute("focusable","false"); span.appendChild(svg.element); svg.element = null; // From d7f946e5cbe74afc66ea92afbac61beb5936d787 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sat, 12 Sep 2015 17:35:41 -0400 Subject: [PATCH 11/14] Handle keyboard events and menu placement better in IE < 9 --- unpacked/extensions/MathEvents.js | 1 + unpacked/extensions/MathMenu.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/unpacked/extensions/MathEvents.js b/unpacked/extensions/MathEvents.js index f9ccbefa8..8e78d5cc9 100644 --- a/unpacked/extensions/MathEvents.js +++ b/unpacked/extensions/MathEvents.js @@ -161,6 +161,7 @@ // Keydown event handler. Should only fire on Space key. // Keydown: function (event, math) { + if (!event) event = window.event; if (event.keyCode === EVENT.KEY.SPACE) { EVENT.ContextMenu(event, this); }; diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js index 05a50b56d..c3105400d 100644 --- a/unpacked/extensions/MathMenu.js +++ b/unpacked/extensions/MathMenu.js @@ -311,7 +311,7 @@ div.appendChild(menu); this.posted = true; - menu.style.width = (menu.offsetWidth+2) + "px"; + if (menu.offsetWidth) menu.style.width = (menu.offsetWidth+2) + "px"; if (event) { var x = event.pageX, y = event.pageY; } @@ -321,7 +321,7 @@ } if (!parent) { var node = MENU.CurrentNode() || event.target; - if (!x && !y && node) { + if ((event.type === "keydown" || (!x && !y)) && node) { var offsetX = window.pageXOffset || document.documentElement.scrollLeft; var offsetY = window.pageYOffset || document.documentElement.scrollTop; var rect = node.getBoundingClientRect(); From 31992363fd189b49432ee850a71467f67a43702f Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 13 Sep 2015 17:44:11 -0400 Subject: [PATCH 12/14] Fix problems found during the running of the testsuite. (First, make sure event is non-null, but I think that was already the case. So we don't need the later tests for it. Then use clientX and clienY even if they are zero.) --- unpacked/extensions/MathMenu.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js index c3105400d..9e47031c6 100644 --- a/unpacked/extensions/MathMenu.js +++ b/unpacked/extensions/MathMenu.js @@ -282,7 +282,7 @@ * Display the menu */ Post: function (event,parent,forceLTR) { - if (!event) {event = window.event}; + if (!event) {event = window.event||{}} var div = document.getElementById("MathJax_MenuFrame"); if (!div) { div = MENU.Background(this); @@ -312,10 +312,8 @@ div.appendChild(menu); this.posted = true; if (menu.offsetWidth) menu.style.width = (menu.offsetWidth+2) + "px"; - if (event) { - var x = event.pageX, y = event.pageY; - } - if (!x && !y && event && event.clientX && event.clientY) { + var x = event.pageX, y = event.pageY; + if (!x && !y && "clientX" in event) { x = event.clientX + document.body.scrollLeft + document.documentElement.scrollLeft; y = event.clientY + document.body.scrollTop + document.documentElement.scrollTop; } @@ -331,7 +329,7 @@ if (x + menu.offsetWidth > document.body.offsetWidth - this.margin) {x = document.body.offsetWidth - menu.offsetWidth - this.margin} if (MENU.isMobile) {x = Math.max(5,x-Math.floor(menu.offsetWidth/2)); y -= 20} - if (event) {MENU.skipUp = event.isContextMenu;} + MENU.skipUp = event.isContextMenu; } else { var side = "left", mw = parent.offsetWidth; x = (MENU.isMobile ? 30 : mw - 2); y = 0; From 6f461fdb5c1832b5ccafea60f03a56ef3ca3f1d9 Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Sun, 13 Sep 2015 18:59:08 -0400 Subject: [PATCH 13/14] Make keyboard menus work with [Math Processing Error] elements. --- unpacked/MathJax.js | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/unpacked/MathJax.js b/unpacked/MathJax.js index 4f0668536..e2db6defb 100644 --- a/unpacked/MathJax.js +++ b/unpacked/MathJax.js @@ -2354,18 +2354,26 @@ MathJax.Hub = { // var errorSettings = this.config.errorSettings; var errorText = LOCALIZE(errorSettings.messageId,errorSettings.message); - var error = MathJax.HTML.Element("span", - {className:"MathJax_Error", jaxID:"Error", isMathJax:true},errorText); + var error = MathJax.HTML.Element("span", { + className:"MathJax_Error", jaxID:"Error", isMathJax:true, + id: script.MathJax.error.inputID+"-Frame" + },errorText); // // Attach the menu events // if (MathJax.Extension.MathEvents) { - error.oncontextmenu = MathJax.Extension.MathEvents.Event.Menu; - error.onmousedown = MathJax.Extension.MathEvents.Event.Mousedown; + var EVENT = MathJax.Extension.MathEvents.Event; + error.oncontextmenu = EVENT.Menu; + error.onmousedown = EVENT.Mousedown; + error.onkeydown = EVENT.Keydown; + error.tabIndex = 0; } else { MathJax.Ajax.Require("[MathJax]/extensions/MathEvents.js",function () { - error.oncontextmenu = MathJax.Extension.MathEvents.Event.Menu; - error.onmousedown = MathJax.Extension.MathEvents.Event.Mousedown; + var EVENT = MathJax.Extension.MathEvents.Event; + error.oncontextmenu = EVENT.Menu; + error.onmousedown = EVENT.Mousedown; + error.keydown = EVENT.Keydown; + error.tabIndex = 0; }); } // @@ -3036,15 +3044,17 @@ MathJax.Hub.Startup = { // Some "Fake" jax used to allow menu access for "Math Processing Error" messages // BASE.OutputJax.Error = { - id: "Error", version: "2.5.0", config: {}, + id: "Error", version: "2.5.0", config: {}, errors: 0, ContextMenu: function () {return BASE.Extension.MathEvents.Event.ContextMenu.apply(BASE.Extension.MathEvents.Event,arguments)}, Mousedown: function () {return BASE.Extension.MathEvents.Event.AltContextMenu.apply(BASE.Extension.MathEvents.Event,arguments)}, getJaxFromMath: function (math) {return (math.nextSibling.MathJax||{}).error}, Jax: function (text,script) { var jax = MathJax.Hub.inputJax[script.type.replace(/ *;(.|\s)*/,"")]; + this.errors++; return { inputJax: (jax||{id:"Error"}).id, // Use Error InputJax as fallback outputJax: "Error", + inputID: "MathJax-Error-"+this.errors, sourceMenuTitle: /*_(MathMenu)*/ ["ErrorMessage","Error Message"], sourceMenuFormat: "Error", originalText: MathJax.HTML.getScript(script), From dd2ba7988302ad60f596fcfc94e12725d11ffa5f Mon Sep 17 00:00:00 2001 From: "Davide P. Cervone" Date: Tue, 15 Sep 2015 08:27:42 -0400 Subject: [PATCH 14/14] Change dialog close button text to be more specific --- unpacked/extensions/HelpDialog.js | 2 +- unpacked/extensions/MathMenu.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unpacked/extensions/HelpDialog.js b/unpacked/extensions/HelpDialog.js index e26d0367e..59ce37752 100644 --- a/unpacked/extensions/HelpDialog.js +++ b/unpacked/extensions/HelpDialog.js @@ -162,7 +162,7 @@ ["a",{href:"http://www.mathjax.org/"},["www.mathjax.org"]], ["span",{id: "MathJax_HelpClose", onclick: HELP.Remove, onkeydown: HELP.Keydown, tabIndex: 0, role: "button", - "aria-label": LOCALE._(["HelpDialog","CloseWindow"],"Close window")}, + "aria-label": LOCALE._(["HelpDialog","CloseDialog"],"Close help dialog")}, [["span",{},["\u00D7"]]] ] ])); diff --git a/unpacked/extensions/MathMenu.js b/unpacked/extensions/MathMenu.js index 2bef958ac..775644ddc 100644 --- a/unpacked/extensions/MathMenu.js +++ b/unpacked/extensions/MathMenu.js @@ -1062,7 +1062,7 @@ ["span",{className:"MathJax_MenuClose",id:"MathJax_AboutClose", onclick:MENU.About.Remove, onkeydown: MENU.About.Keydown, tabIndex: 0, role: "button", - "aria-label": _("CloseWindow","Close window")}, + "aria-label": _("CloseAboutDialog","Close about MathJax dialog")}, [["span",{},"\u00D7"]]] ]); if (event.type === "mouseup") about.className += " MathJax_MousePost";