mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 14:30:02 -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.HTMLSourceElement,
|
||||
],
|
||||
href: [self.HTMLAnchorElement, self.HTMLLinkElement],
|
||||
href: [self.HTMLAnchorElement, self.HTMLLinkElement, self.SVGUseElement],
|
||||
data: [self.HTMLObjectElement],
|
||||
action: [self.HTMLFormElement],
|
||||
formaction: [self.HTMLButtonElement, self.HTMLInputElement],
|
||||
|
|
|
@ -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"],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue