mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Add support for <object>
It's sometimes used for SVGs
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user