update epub.js
This commit is contained in:
parent
34c08333bc
commit
3c12da48d3
4 changed files with 5 additions and 4 deletions
|
@ -5508,7 +5508,7 @@ EPUBJS.Parser.prototype.spine = function(spineXml, manifest){
|
||||||
EPUBJS.Parser.prototype.querySelectorByType = function(html, element, type){
|
EPUBJS.Parser.prototype.querySelectorByType = function(html, element, type){
|
||||||
var query = html.querySelector(element+'[*|type="'+type+'"]');
|
var query = html.querySelector(element+'[*|type="'+type+'"]');
|
||||||
// Handle IE not supporting namespaced epub:type in querySelector
|
// Handle IE not supporting namespaced epub:type in querySelector
|
||||||
if(query.length === 0) {
|
if(query === null || query.length === 0) {
|
||||||
query = html.querySelectorAll(element);
|
query = html.querySelectorAll(element);
|
||||||
for (var i = 0; i < query.length; i++) {
|
for (var i = 0; i < query.length; i++) {
|
||||||
if(query[i].getAttributeNS("http://www.idpf.org/2007/ops", "type") === type) {
|
if(query[i].getAttributeNS("http://www.idpf.org/2007/ops", "type") === type) {
|
||||||
|
@ -5698,6 +5698,7 @@ EPUBJS.Parser.prototype.pageListItem = function(item, spineIndexByURL, bookSpine
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
EPUBJS.Render.Iframe = function() {
|
EPUBJS.Render.Iframe = function() {
|
||||||
this.iframe = null;
|
this.iframe = null;
|
||||||
this.document = null;
|
this.document = null;
|
||||||
|
|
File diff suppressed because one or more lines are too long
2
epub.js/epub.min.js
vendored
2
epub.js/epub.min.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue