mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-13 06:20:02 -04:00
fix: svguseelement rewriting (fixes discord hover icons)
This commit is contained in:
parent
ebfadf2f37
commit
1070e68dcf
2 changed files with 2 additions and 7 deletions
|
@ -27,12 +27,7 @@ export default function (client: ScramjetClient, self: typeof window) {
|
||||||
self.HTMLScriptElement,
|
self.HTMLScriptElement,
|
||||||
self.HTMLSourceElement,
|
self.HTMLSourceElement,
|
||||||
],
|
],
|
||||||
href: [
|
href: [self.HTMLAnchorElement, self.HTMLLinkElement, self.SVGImageElement],
|
||||||
self.HTMLAnchorElement,
|
|
||||||
self.HTMLLinkElement,
|
|
||||||
self.SVGUseElement,
|
|
||||||
self.SVGImageElement,
|
|
||||||
],
|
|
||||||
data: [self.HTMLObjectElement],
|
data: [self.HTMLObjectElement],
|
||||||
action: [self.HTMLFormElement],
|
action: [self.HTMLFormElement],
|
||||||
formaction: [self.HTMLButtonElement, self.HTMLInputElement],
|
formaction: [self.HTMLButtonElement, self.HTMLInputElement],
|
||||||
|
|
|
@ -127,7 +127,7 @@ export const htmlRules: {
|
||||||
"input",
|
"input",
|
||||||
"track",
|
"track",
|
||||||
],
|
],
|
||||||
href: ["a", "link", "area", "use", "image"],
|
href: ["a", "link", "area", "image"],
|
||||||
data: ["object"],
|
data: ["object"],
|
||||||
action: ["form"],
|
action: ["form"],
|
||||||
formaction: ["button", "input", "textarea", "submit"],
|
formaction: ["button", "input", "textarea", "submit"],
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue