1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-04 15:09:16 +02:00

Merge pull request #817 from graydrago/fix_ie11

Fixes for Internet Explorer
This commit is contained in:
Fred Chasen 2018-09-07 13:41:18 -07:00 committed by GitHub
commit bf8df2a99a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -95,7 +95,7 @@ class Section {
var isIE = userAgent.indexOf('Trident') >= 0;
var Serializer;
if (typeof XMLSerializer === "undefined" || isIE) {
Serializer = require("xmldom").XMLSerializer;
Serializer = require("xmldom/dom-parser").XMLSerializer;
} else {
Serializer = XMLSerializer;
}

View file

@ -1,4 +1,5 @@
import path from "path-webpack";
import URL from "../../libs/url/url-polyfill";
/**
* Creates a Path object for parsing and manipulation of a path strings