Re: [csswg-drafts] [cssom]Inline style manipulation is somewhere between underspecified and incorrectly specified

So, I think the bits to fix this are:
1. Define "attribute change steps" in either CSS Style Attributes or CSSOM (probably the former?) to accept change from setting attribute via DOM.
2. Change the set functions and delete function to run [change an attribute](https://dom.spec.whatwg.org/#concept-element-attributes-change) and [append an attribute](https://dom.spec.whatwg.org/#concept-element-attributes-append).

The hard part is that this create a slightly unfortunate reparsing in "attribute change steps", it's probably not too bad. Browsers should be able to optimize out that easily without observable difference. Actually this is already the case for `DOMTokenList`.

-- 
GitHub Notification of comment by upsuper
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1559#issuecomment-362782926 using your GitHub account

Received on Saturday, 3 February 2018 05:54:15 UTC