JSFiddle - React, Tailwind, and code Playground
JavaScript
/*
This test works in Chrome and FireFox but Not in IE8 or IE9. IE returns the error "Could not complete the operation due to error 80020101"
It seems that jQuery is cleaning only the opening "<!--" tag and ignoring the closing one which IE doesn't like.
*/
var data = "\n<!--\n alert(\"It Worked!\");\n\n-->\n";
//jQuery 1.7.1 line # 5656
var rcleanScript = /^\s*<!(?:\[CDATA\[|\-\-)/;
//jQuery 1.7.1 line # 6433 - Simplified for testing
jQuery.globalEval( ( data || "" ).replace( rcleanScript, "/*$0*/" ));