New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 644602 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 645335
Owner:
Last visit > 30 days ago
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug

Blocking:
issue 643030



Sign in to add a comment

CustomElements: upgrade running connectedCallback on an element with a throwing constructor

Project Member Reported by davaajav@google.com, Sep 7 2016

Issue description

https://github.com/w3c/webcomponents/issues/563

Upgrade runs connectedCallback on an element with a throwing constructor. After executing the following code log contains 'connected'.

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.
 
Blocking: 643030
Project Member

Comment 2 by sheriffbot@chromium.org, Sep 7 2016

Labels: Hotlist-Google

Comment 3 Deleted

Description: Show this description

Comment 5 by tkent@chromium.org, Sep 9 2016

Components: -Blink>DOM Blink>WebComponents

Comment 6 by hayato@chromium.org, Sep 12 2016

Cc: kojii@chromium.org
Owner: dominicc@chromium.org

Comment 7 by hayato@chromium.org, Oct 12 2016

Components: -Blink>WebComponents Blink>HTML>CustomElements
Mergedinto: 645335
Status: Duplicate (was: Untriaged)

Sign in to add a comment