diff --git a/src/js/contentscript.js b/src/js/contentscript.js index e45ad5a..1ff7d17 100644 --- a/src/js/contentscript.js +++ b/src/js/contentscript.js @@ -473,7 +473,7 @@ var collapser = (function() { }; var morphNoscript = function(from) { - if ( document instanceof XMLDocument ) { + if ( /^application\/(?:xhtml\+)?xml/.test(document.contentType) ) { var to = document.createElement('span'); while ( from.firstChild !== null ) { to.appendChild(from.firstChild);