Boris Zbarsky (2013-11-13T00:01:53.000Z)
On 11/12/13 2:01 PM, Matthew Robb wrote:
> Perhaps somewhere in the middle would work, something like a regular map
> but that also pays attention to the ref count changes of key and an
> author can hook in with a callback that effectively means "reached 1 ref".

Consider this testcase:

   var elem = document.createElement("div");
   elem.innerHTML = "<span></span>Some text";

At what point does "elem" reach 1 ref?

-Boris
domenic at domenicdenicola.com (2013-11-17T17:59:05.646Z)
On 11/12/13 2:01 PM, Matthew Robb wrote:
> Perhaps somewhere in the middle would work, something like a regular map
> but that also pays attention to the ref count changes of key and an
> author can hook in with a callback that effectively means "reached 1 ref".

Consider this testcase:

```js
var elem = document.createElement("div");
elem.innerHTML = "<span></span>Some text";
```

At what point does "elem" reach 1 ref?