Use new attributeStyleMap for elements

More info here: https://developers.google.com/web/updates/2018/03/cssom
This commit is contained in:
David Wilson
2018-12-13 11:30:59 -08:00
parent 7e5ba7c1ab
commit 1276f6f85d

View File

@@ -4433,7 +4433,7 @@ class NodePool {
if (element) {
element.className = className || ''
element.styleMap.forEach((value, key) => {
element.attributeStyleMap.forEach((value, key) => {
if (!style || style[key] == null) element.style[key] = ''
})
if (style) Object.assign(element.style, style)