We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6245bee commit c14242eCopy full SHA for c14242e
src/rebuild.ts
@@ -128,6 +128,11 @@ function buildNode(
128
try {
129
if (n.isSVG && name === 'xlink:href') {
130
node.setAttributeNS('http://www.w3.org/1999/xlink', name, value);
131
+ } else if (name == 'onload' || name == 'onclick' || name.substring(0, 7) == 'onmouse') {
132
+ // Rename some of the more common atttributes from https://www.w3schools.com/tags/ref_eventattributes.asp
133
+ // as setting them triggers a console.error (which shows up despite the try/catch)
134
+ // Assumption: these attributes are not used to css
135
+ node.setAttribute('_' + name, value);
136
} else {
137
node.setAttribute(name, value);
138
}
0 commit comments