Skip to content

Commit

Permalink
Unescaped Markup Plugin: Use msMatchesSelector for IE11 and below. Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Golmote committed Mar 4, 2018
1 parent 020f88b commit c246c1a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/unescaped-markup/prism-unescaped-markup.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
});

Prism.hooks.add('before-sanity-check', function (env) {
if (env.element.matches("script[type='text/plain']")) {
if ((env.element.matches || env.element.msMatchesSelector).call(env.element, "script[type='text/plain']")) {
var code = document.createElement("code");
var pre = document.createElement("pre");

Expand Down
2 changes: 1 addition & 1 deletion plugins/unescaped-markup/prism-unescaped-markup.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c246c1a

Please sign in to comment.