mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 22:40:01 -04:00
fix: rewrite svguseelement
This commit is contained in:
parent
3e3bacfbb2
commit
8b62493bcc
2 changed files with 2 additions and 3 deletions
|
@ -33,7 +33,7 @@ export default function (client: ScramjetClient, self: typeof window) {
|
||||||
self.HTMLScriptElement,
|
self.HTMLScriptElement,
|
||||||
self.HTMLSourceElement,
|
self.HTMLSourceElement,
|
||||||
],
|
],
|
||||||
href: [self.HTMLAnchorElement, self.HTMLLinkElement],
|
href: [self.HTMLAnchorElement, self.HTMLLinkElement, self.SVGUseElement],
|
||||||
data: [self.HTMLObjectElement],
|
data: [self.HTMLObjectElement],
|
||||||
action: [self.HTMLFormElement],
|
action: [self.HTMLFormElement],
|
||||||
formaction: [self.HTMLButtonElement, self.HTMLInputElement],
|
formaction: [self.HTMLButtonElement, self.HTMLInputElement],
|
||||||
|
|
|
@ -123,7 +123,7 @@ export const htmlRules: {
|
||||||
"input",
|
"input",
|
||||||
"track",
|
"track",
|
||||||
],
|
],
|
||||||
href: ["a", "link", "area"],
|
href: ["a", "link", "area", "use"],
|
||||||
data: ["object"],
|
data: ["object"],
|
||||||
action: ["form"],
|
action: ["form"],
|
||||||
formaction: ["button", "input", "textarea", "submit"],
|
formaction: ["button", "input", "textarea", "submit"],
|
||||||
|
@ -149,7 +149,6 @@ export const htmlRules: {
|
||||||
nonce: "*",
|
nonce: "*",
|
||||||
crossorigin: "*",
|
crossorigin: "*",
|
||||||
integrity: ["script", "link"],
|
integrity: ["script", "link"],
|
||||||
sandbox: ["iframe"],
|
|
||||||
csp: ["iframe"],
|
csp: ["iframe"],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue