From e488a2207e4118188476dd723eeffc00c9164025 Mon Sep 17 00:00:00 2001 From: Jani Hartikainen Date: Tue, 21 Jul 2015 13:54:14 +0000 Subject: [PATCH] doc.defaultView doesn't work in IE8. Add fallback to parentWindow for that case --- fixtures.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fixtures.js b/fixtures.js index 4ac1e3df..e334e1b4 100644 --- a/fixtures.js +++ b/fixtures.js @@ -81,7 +81,7 @@ } doc.open(); - doc.defaultView.onerror = captureErrors; + doc['defaultView' in doc ? 'defaultView' : 'parentWindow'].onerror = captureErrors; doc.write(html); doc.close(); };