Closed MarcMcIntosh closed 4 years ago
fixed issue with setAttribute("style", obj) resulting in
Documentation on recreating and testing this has been added to notion.
Or can be reproduce on a web-based code editor with
<div id="foo" /> <script> const elem = document.getElementById("foo") const styl = { width: "100px", height: "100px", backgroundColor: "red" }; // here elem.setAttribute("style", styl); <script>
The following code fix the issue
<div id="foo" /> <script> const elem = document.getElementById("foo") const styl = { width: "100px", height: "100px", backgroundColor: "red" }; // here Object.assign(elem.style, styl); <script>
56
fixed issue with setAttribute("style", obj) resulting in
Documentation on recreating and testing this has been added to notion.
Or can be reproduce on a web-based code editor with
The following code fix the issue