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

Re: [csswg-drafts] [css-pseudo-4] Identity of Element.pseudo() return value (#3607)

From: Anne van Kesteren via GitHub <sysbot+gh@w3.org>
Date: Tue, 26 Feb 2019 09:32:16 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-467365412-1551173536-sysbot+gh@w3.org>
I think you either need to preserve a 1:1 relationship, always return a new object, or perhaps return a new object per task on the event loop (though this gets complicated). Some kind of weak references isn't the way to go. Note that with many objects their associated style objects would also be many (that relationship has to be 1:1 presumably) and they'd all end up being proxies for the actual style or some such. That seems somewhat complicated to define. Unless you invalidate the objects per task or some such.

-- 
GitHub Notification of comment by annevk
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3607#issuecomment-467365412 using your GitHub account
Received on Tuesday, 26 February 2019 09:32:18 UTC

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