Skip to content

Commit 96c2f5c

Browse files
committed
Simulate support of data URIs for IE10
1 parent e17d828 commit 96c2f5c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

web/compatibility.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,10 @@
244244
};
245245
})();
246246

247-
// IE9 text/html data URI
248-
(function checkDocumentDocumentModeCompatibility() {
249-
if (!('documentMode' in document) || document.documentMode !== 9)
247+
// IE9/10 text/html data URI
248+
(function checkDataURICompatibility() {
249+
if (!('documentMode' in document) ||
250+
document.documentMode !== 9 && document.documentMode !== 10)
250251
return;
251252
// overriding the src property
252253
var originalSrcDescriptor = Object.getOwnPropertyDescriptor(

0 commit comments

Comments
 (0)