Re: [w3c/webcomponents] ES5 consideration for custom elements (#423)

All, the strict enforcement of super means that transpilers can not compile to ES5 without using Reflect.construct because Reflect.construct won't work in anything below Edge 12.

This is a bad because not everyone is off of IE 10 or 11 yet, and there's no way to transpile this to a format that doesn't use `new.target` or `Reflect.construct`.

What this means is that people transpiling this to ES5 and using a Custom Elements v1 will get lucky that it works in IE10, but then they'll get this error in new browsers like Chrome:

```
Uncaught TypeError: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function
```

-- 
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/423#issuecomment-333319140

Received on Saturday, 30 September 2017 16:22:35 UTC