- From: Tomek Wytrębowicz <notifications@github.com>
- Date: Thu, 25 Oct 2018 11:38:41 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 25 October 2018 18:39:02 UTC
Use-case which needs a note/warning in spec or at least MDN https://github.com/w3c/webcomponents/issues/760 ```js class ParentElement extends HTMLElement { connectedCallback() { const child = this.childNodes[0]; log('Child removal begin'); this.removeChild(child); log('Child removal end'); } } customElements.define('parent-element', ParentElement); class Child1 extends HTMLElement { connectedCallback() { log('Child connectedCallback isConnected=' + this.isConnected.toString()); } } customElements.define('child-1', Child1); const container = document.createElement('div'); container.innerHTML = '<parent-element><child-1></child-1></parent-element>'; customElements.upgrade(container); document.body.appendChild(container); // Child connectedCallback isConnected=false ``` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/webcomponents/issues/760#issuecomment-433160831
Received on Thursday, 25 October 2018 18:39:02 UTC