From 239af2437a5b90e2a60f8fcf8a80f16c8c152e20 Mon Sep 17 00:00:00 2001 From: "Pablo C. Vergara Castro" Date: Mon, 3 Jun 2024 07:54:44 +0200 Subject: [PATCH] Close the "not" function (#25) Co-authored-by: pvergara --- epub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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