W3C home > Mailing lists > Public > public-css-archive@w3.org > February 2018

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

From: Xidorn Quan via GitHub <sysbot+gh@w3.org>
Date: Sat, 03 Feb 2018 05:54:12 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-362782926-1517637251-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:24 UTC