-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
Description
We have some duplicate code in domTree.js, e.g.
// Apply inline styles
for (const style in this.style) {
if (Object.prototype.hasOwnProperty.call(this.style, style)) {
span.style[style] = this.style[style];
}
}
// Apply attributes
for (const attr in this.attributes) {
if (Object.prototype.hasOwnProperty.call(this.attributes, attr)) {
span.setAttribute(attr, this.attributes[attr]);
}
}
appears in a few places.
Reactions are currently unavailable