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

> if you don't hold a reference and don't set any expandos, the object can be freed

This includes weak references, right?

```js
var s = new WeakSet();
s.add(element.pseudo(type)); // Store weak reference
// later
s.has(element.pseudo(type)); // Should be true because GC shouldn't be observable
```

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

Received on Tuesday, 26 February 2019 15:53:47 UTC