W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2017

Re: [csswg-drafts] [cssom][all] Add CSSOMString and replace DOMString usage with it

From: Simon Pieters via GitHub <sysbot+gh@w3.org>
Date: Fri, 21 Apr 2017 13:54:22 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-296196905-1492782861-sysbot+gh@w3.org>
So `title` on the HTML side is on `HTMLElement` and is `DOMString`. Then "create a CSS stylesheet" the `title` content attribute is passed for the [title](https://drafts.csswg.org/cssom/#concept-css-style-sheet-title), which is then updated if the content attribute is changed. [`styleSheet.title`](https://drafts.csswg.org/cssom/#dom-stylesheet-title) then returns that value... which is a `DOMString`.

I'm open to changing how this works, but since the string will exist as a `DOMString` anyway, it seems kinda pointless to use `CSSOMString` on `StyleSheet`.

GitHub Notification of comment by zcorpan
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/pull/1266#issuecomment-296196905 using your GitHub account
Received on Friday, 21 April 2017 13:54:28 UTC

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