Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Fix IE10-in-IE8-mode retemplating bug
Browse files Browse the repository at this point in the history
Auditors: eater, cbhl
  • Loading branch information
sophiebits committed Apr 4, 2013
1 parent 7adb517 commit fb8d6a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/tmpl.js
Expand Up @@ -223,8 +223,10 @@ $.tmpl = {
// in the process. Let's just reset the text (and in // in the process. Let's just reset the text (and in
// doing so, remove all the MathJax stuff (both the // doing so, remove all the MathJax stuff (both the
// script and the adjacent span)) so we can start from // script and the adjacent span)) so we can start from
// scratch with the templating process. // scratch with the templating process. Use html(),
$elem.text($script.text()); // not text() because IE10 in IE8 mode returns "" for
// the innerText of a script element.
$elem.text($script.html());
} }


// Maintain the classes from the original element // Maintain the classes from the original element
Expand Down

0 comments on commit fb8d6a3

Please sign in to comment.