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

Issue 648915 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Oct 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac
Pri: 2
Type: Bug

Blocked on:
issue 643049

Blocking:
issue 643030



Sign in to add a comment

Define 10.6.1 says to rethrow exceptions from converting observedAttributes to sequence<DOMString>

Project Member Reported by dominicc@chromium.org, Sep 21 2016

Issue description

WebKit tests indicate Chrome canary doesn't do this correctly.
 
Blockedon: 643049

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

Components: -Blink>WebComponents -Blink>DOM Blink>HTML>CustomElements
Status: WontFix (was: Available)
I don't see this failure in our imported tests. Closing.
Status: Available (was: WontFix)
Reopening this, failure example at:

http://codepen.io/anon/pen/WGmObZ

This should throw an exception from define, but it does not.

'use strict';

let attrs = {};
attrs[Symbol.iterator] = function*() {
  throw 'bar';
}

class X extends HTMLElement {
  static get observedAttributes() {
    console.log('retrieving attrs');
    return attrs;
  }
  attributeChangedCallback(name) {
    console.log(`${name} changed`)
  }
}

customElements.define('x-x', X);
Cc: dominicc@chromium.org
Owner: bashi@chromium.org
Status: Fixed (was: Available)
This should be fixed by bashi's patch 19f37fd06b24d3af5e84f019e561d18c125a29e9

Sign in to add a comment