fix: stop proxying event attributes

This commit is contained in:
Percs 2024-10-30 01:26:12 -05:00
parent 36a57c1e86
commit 8b9a276f62

View file

@ -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)