Support for EPUB 3 spine-level SVG components

This commit is contained in:
Julien Chaumond 2014-04-02 11:07:01 +02:00
parent dc8c81bdca
commit 5fa974e614

View File

@ -638,7 +638,7 @@ EPub.prototype.getChapter = function (id, callback) {
EPub.prototype.getChapterRaw = function (id, callback) { EPub.prototype.getChapterRaw = function (id, callback) {
if (this.manifest[id]) { if (this.manifest[id]) {
if ((this.manifest[id]['media-type'] || "").toLowerCase().trim() != "application/xhtml+xml") { if (!(this.manifest[id]['media-type'] == "application/xhtml+xml" || this.manifest[id]['media-type'] == "image/svg+xml")) {
return callback(new Error("Invalid mime type for chapter")); return callback(new Error("Invalid mime type for chapter"));
} }