Re: [w3c/webcomponents] HTML element constructors need to Get(newTarget, "Prototype") (#560)

not sure if relevant but when I've written about [the super (and transpilers) problem](https://www.webreflection.co.uk/blog/2016/08/30/js-super-problem), since we discussed this on twitter (where you seem to be disappeared) I've noticed that in Canary it's possible to create custom elements without even extending.

```js
// no extend
class MyElement {}

// definition
customElements.define('my-element', MyElement);

// here we go
const me = Reflect.construct(
  HTMLElement,
  [],
  MyElement
);
```

Surprisingly this doesn't throw. I'm not sure it's a `Reflect` gotcha or there's really something wrong with the way inheritance works with `HTMLElement` constructor.

Apologies if off topic.

-- 
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/560#issuecomment-243691860

Received on Wednesday, 31 August 2016 08:16:46 UTC