diff --git a/epub.js b/epub.js index f77f0d7..71455be 100644 --- a/epub.js +++ b/epub.js @@ -702,7 +702,7 @@ class Loader { for (const el of doc.querySelectorAll('[src]')) await replace(el, 'src') for (const el of doc.querySelectorAll('[poster]')) await replace(el, 'poster') for (const el of doc.querySelectorAll('object[data]')) await replace(el, 'data') - for (const el of doc.querySelectorAll('[*|href]:not([href]')) + for (const el of doc.querySelectorAll('[*|href]:not([href])')) el.setAttributeNS(NS.XLINK, 'href', await this.loadHref( el.getAttributeNS(NS.XLINK, 'href'), href, parents)) // replace inline styles