From 602c8381c25a6bed89b5f374018fab157f658d2f Mon Sep 17 00:00:00 2001 From: John Factotum <50942278+johnfactotum@users.noreply.github.com> Date: Thu, 27 Oct 2022 18:11:21 +0000 Subject: [PATCH] Add support for `` It's sometimes used for SVGs --- epub.js | 1 + reader.html | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/epub.js b/epub.js index 8858dcd..de781a5 100644 --- a/epub.js +++ b/epub.js @@ -500,6 +500,7 @@ class Loader { for (const el of doc.querySelectorAll('link[href]')) await replace(el, 'href') 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]')) el.setAttributeNS(NS.XLINK, 'href', await this.loadHref( el.getAttributeNS(NS.XLINK, 'href'), href, parents)) diff --git a/reader.html b/reader.html index 48e3d1e..ec375bb 100644 --- a/reader.html +++ b/reader.html @@ -2,7 +2,7 @@ - + E-Book Reader