- From: davaajav-shino <notifications@github.com>
- Date: Tue, 06 Sep 2016 21:50:48 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
Received on Wednesday, 7 September 2016 04:51:23 UTC
Upgrade runs connectedCallback on an element with a throwing constructor. After executing the following code `log` contains `'connected'`. ```javascript let element = document.createElement('a-a'); let log = []; w.customElements.define('a-a', class extends w.HTMLElement { constructor() { throw new Error(); } connectedCallback() { log.push('connected'); } }); document.body.appendChild(element); ``` https://html.spec.whatwg.org/#concept-upgrade-an-element enqueueing attributeChangedCallback, connectedCallback after custom element\`s state check in Step 2 is not enough when the the element\`s state is changed in Step 9. -- 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/563
Received on Wednesday, 7 September 2016 04:51:23 UTC