|
|
@ -94,7 +94,9 @@ export function set_attributes(node: Element & ElementCSSInlineStyle, attributes
|
|
|
|
if (key === 'style') {
|
|
|
|
if (key === 'style') {
|
|
|
|
node.style.cssText = attributes[key];
|
|
|
|
node.style.cssText = attributes[key];
|
|
|
|
} else if (key in node) {
|
|
|
|
} else if (key in node) {
|
|
|
|
node[key] = attributes[key];
|
|
|
|
if (node[key] !== attributes[key]) {
|
|
|
|
|
|
|
|
node[key] = attributes[key];
|
|
|
|
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
attr(node, key, attributes[key]);
|
|
|
|
attr(node, key, attributes[key]);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -291,4 +293,4 @@ export class HtmlTag {
|
|
|
|
d() {
|
|
|
|
d() {
|
|
|
|
this.n.forEach(detach);
|
|
|
|
this.n.forEach(detach);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|