cure53/DOMPurify — pull request #38 by devd (2014-10-31 20:56:26+00:00)
Title: Fall back to toStaticHTML if available

85de1e83b9ea22ec7e6cb379efc21d0d4ec83478 added a feature detect to not do anything if createHTMLDocument does not exist. IE8 is likely one of the most common browsers that doesn't have createHTMLDocument. This diff modifies code to use toStaticHTML which IE8 supports. Despite its limitations, this is better than doing nothing.