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))
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
<meta charset="utf-8">
|
||||
<meta name="color-scheme" content="light dark">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' blob:; script-src 'self'; style-src 'self' blob: 'unsafe-inline'; img-src 'self' blob: data:; connect-src 'self' blob: data:; frame-src blob: data:; object-src 'none'; form-action 'none';">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'self' blob:; script-src 'self'; style-src 'self' blob: 'unsafe-inline'; img-src 'self' blob: data:; connect-src 'self' blob: data:; frame-src blob: data:; object-src blob: data:; form-action 'none';">
|
||||
<title>E-Book Reader</title>
|
||||
<style>
|
||||
:root {
|
||||
|
||||
Reference in New Issue
Block a user