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

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