mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 15:00:01 -04:00
fix: stop proxying event attributes
This commit is contained in:
parent
36a57c1e86
commit
8b9a276f62
1 changed files with 3 additions and 0 deletions
|
@ -218,8 +218,10 @@ function traverseParsedHtml(
|
|||
}
|
||||
}
|
||||
}
|
||||
/*
|
||||
for (const [attr, value] of Object.entries(node.attribs)) {
|
||||
if (attr.startsWith("on")) {
|
||||
console.log(`${attr}: ${value}`);
|
||||
node.attribs[`data-scramjet-${attr}`] = attr;
|
||||
node.attribs[attr] = rewriteJs(
|
||||
value as string,
|
||||
|
@ -228,6 +230,7 @@ function traverseParsedHtml(
|
|||
);
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
if (node.name === "style" && node.children[0] !== undefined)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue