Add support for <object>

It's sometimes used for SVGs
This commit is contained in:
John Factotum
2022-10-27 18:11:21 +00:00
committed by GitHub
parent 2a5ccb93d9
commit 602c8381c2
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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))