fix: rewrite svguseelement

This commit is contained in:
Percs 2024-10-27 15:41:16 -05:00
parent 3e3bacfbb2
commit 8b62493bcc
2 changed files with 2 additions and 3 deletions

View file

@ -33,7 +33,7 @@ export default function (client: ScramjetClient, self: typeof window) {
self.HTMLScriptElement,
self.HTMLSourceElement,
],
href: [self.HTMLAnchorElement, self.HTMLLinkElement],
href: [self.HTMLAnchorElement, self.HTMLLinkElement, self.SVGUseElement],
data: [self.HTMLObjectElement],
action: [self.HTMLFormElement],
formaction: [self.HTMLButtonElement, self.HTMLInputElement],

View file

@ -123,7 +123,7 @@ export const htmlRules: {
"input",
"track",
],
href: ["a", "link", "area"],
href: ["a", "link", "area", "use"],
data: ["object"],
action: ["form"],
formaction: ["button", "input", "textarea", "submit"],
@ -149,7 +149,6 @@ export const htmlRules: {
nonce: "*",
crossorigin: "*",
integrity: ["script", "link"],
sandbox: ["iframe"],
csp: ["iframe"],
},
{