Skip to content

Commit

Permalink
fix: rewrite svguseelement
Browse files Browse the repository at this point in the history
  • Loading branch information
Percslol committed Oct 27, 2024
1 parent 3e3bacf commit 8b62493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/client/dom/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
3 changes: 1 addition & 2 deletions src/shared/rewriters/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand All @@ -149,7 +149,6 @@ export const htmlRules: {
nonce: "*",
crossorigin: "*",
integrity: ["script", "link"],
sandbox: ["iframe"],
csp: ["iframe"],
},
{
Expand Down

0 comments on commit 8b62493

Please sign in to comment.