Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix IE10-in-IE8-mode retemplating bug

Auditors: eater, cbhl
  • Loading branch information...
commit fb8d6a341b0fbf5771d8f5f8603b69b8d823fd5d 1 parent 7adb517
@spicyj spicyj authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 utils/tmpl.js
View
6 utils/tmpl.js
@@ -223,8 +223,10 @@ $.tmpl = {
// in the process. Let's just reset the text (and in
// doing so, remove all the MathJax stuff (both the
// script and the adjacent span)) so we can start from
- // scratch with the templating process.
- $elem.text($script.text());
+ // scratch with the templating process. Use html(),
+ // 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
Please sign in to comment.
Something went wrong with that request. Please try again.