call 'attr' function if 'set' failed

pull/6809/head
Yuichiro Yamashita 5 years ago
parent c53f06decd
commit 4ecf6dcf6c

@ -304,6 +304,7 @@ export function set_attributes(node: Element & ElementCSSInlineStyle, attributes
} else if (descriptors[key] && descriptors[key].set) { } else if (descriptors[key] && descriptors[key].set) {
if (node[key] !== attributes[key]) { if (node[key] !== attributes[key]) {
node[key] = attributes[key]; node[key] = attributes[key];
if (node[key] !== attributes[key]) attr(node, key, attributes[key]);
} }
} else { } else {
attr(node, key, attributes[key]); attr(node, key, attributes[key]);

Loading…
Cancel
Save