www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit dcb1c14353360ff408848643b77e4eaa412480dd
parent b225ce154a75e61cc7b3b29eb381f69eb7ab6266
Author: dpvc <dpvc@b8fd5906-0fad-46e2-a0d3-10d94ff285d1>
Date:   Fri,  6 Aug 2010 11:43:36 +0000

Set text of script rather than move MathML element into script (slower, but avoids bugs in getting the text version of the script for Show Source).  Resolves remainder of bug 3040088.)

Diffstat:
Mmathjax/unpacked/extensions/mml2jax.js | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/mathjax/unpacked/extensions/mml2jax.js b/mathjax/unpacked/extensions/mml2jax.js @@ -24,6 +24,7 @@ */ MathJax.Extension.mml2jax = { + varsion: "1.0.1", config: { element: null, // The ID of the element to be processed // (defaults to full document) @@ -69,7 +70,8 @@ MathJax.Extension.mml2jax = { script.text = html; parent.removeChild(math); } else { - script.appendChild(math); + var span = MathJax.HTML.Element("span"); span.appendChild(math); + MathJax.HTML.addText(script,span.innerHTML); } if (this.config.preview !== "none") {this.createPreview(math,script)} },