Re: [webcomponents] Replace attached/detached callbacks with insertedIntoDocument/removedFromDocument (#362)

@annevk I don't understand. The document seems 100% necessary. Consider this case:

```js
const p = document1.createElement("p");
const c = document1.createElement("custom-foo");
p.appendChild(c);

document2.body.appendChild(p);
```

In this case `p` is being inserted into `document2.body`. `inclusiveDescendant` is `c`. And `c`'s node document (i.e. the value of `this.ownerDocument` inside `connectedCallback`) is `document1`. But we are connecting it to `document2`. So we should be passing `document2`.

---
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/362#issuecomment-193841433

Received on Tuesday, 8 March 2016 16:08:15 UTC