- From: Joseph Orbegoso Pea <notifications@github.com>
- Date: Sat, 02 Jul 2016 14:59:10 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc:
Received on Saturday, 2 July 2016 21:59:40 UTC
@domenic
We should make the result of `instanceof` be obvious. I think this could be better in v1 (without `is=""` and without `options.extends`):
```html
<my-el></my-el>
```
```js
class MyEl extends HTMLDivElement { /*... */ }
customElements.define('my-el', MyEl)
// ...
document.querySelector('my-el') instanceof MyEl // true!
```
---
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/509#issuecomment-230123981
Received on Saturday, 2 July 2016 21:59:40 UTC