mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-15 07:20:02 -04:00
oops
This commit is contained in:
parent
7d15d8477e
commit
2e84592431
1 changed files with 1 additions and 1 deletions
|
@ -226,7 +226,7 @@ function traverseParsedHtml(
|
||||||
}
|
}
|
||||||
for (const [attr, value] of Object.entries(node.attribs)) {
|
for (const [attr, value] of Object.entries(node.attribs)) {
|
||||||
if (eventAttributes.includes(attr)) {
|
if (eventAttributes.includes(attr)) {
|
||||||
node.attribs[`scramjet-data-${attr}`] = attr;
|
node.attribs[`scramjet-data-${attr}`] = value;
|
||||||
node.attribs[attr] = rewriteJs(
|
node.attribs[attr] = rewriteJs(
|
||||||
value as string,
|
value as string,
|
||||||
`(inline ${attr} on element)`,
|
`(inline ${attr} on element)`,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue