-
-
Notifications
You must be signed in to change notification settings - Fork 723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make testsuite work on IE9 #21
Comments
Nope, it's this statement: https://github.com/cure53/DOMPurify/blob/master/purify.js#L178 /* Cover IE9's buggy outerHTML behavior */
if(dom.body === null) {
dom.body.innerHTML = dirty;
} I don't know what your original intention was … ;) Second issue: https://github.com/cure53/DOMPurify/blob/master/test/index.html#L29 QUnit.assert.contains = function( needle, haystack, message ) {
var actual = haystack.indexOf(needle) > -1;
QUnit.push(actual, actual, needle, message);
}; This doesn't seem to work when you return early and return an empty sting (https://github.com/cure53/DOMPurify/blob/master/purify.js#L390) (cc @mathiasbynens):
|
In IE9, |
Well, |
This is breaking for me in ie9 (not the tests). https://www.dropbox.com/s/mb490tr9xpxu080/Screenshot%202014-04-15%2014.51.43.png |
I'm not sure the intent, but using innerHTML instead of outer, works. But it might negate your intention. |
I am currently revising this issue, you guys are right. Additional code is needed for IE9 to work fine. |
I added a fix for the I ran the tests and they do work now - but many of them yield results that are beyond reason (closing So far my conclusion is: DOMPurify works on IE9, produces safe output, but to make all tests go green we'd have to start accepting absurd HTML that might have structural flaws and produce results we cannot observe on any other browser. Thoughts? |
Closed for inactivity, no bug reports from IE9. Re-open if necessary. |
So far the test-suite does not work at all on IE9, dying with an error stating that
innerHTML
ofundefined
cannot be set. QUnit issue? (@fhemberger)The text was updated successfully, but these errors were encountered: