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 d548a5a commit de131e4Copy full SHA for de131e4
src/internal/dom.js
@@ -93,7 +93,11 @@ export function set_attributes(node, attributes) {
93
if (key === 'style') {
94
node.style.cssText = attributes[key];
95
} else if (key in node) {
96
- node[key] = attributes[key];
+ try {
97
+ node[key] = attributes[key];
98
+ } catch (e) {
99
+ attr(node, key, attributes[key]);
100
+ }
101
} else {
102
attr(node, key, attributes[key]);
103
}
0 commit comments