- From: Ryosuke Niwa <notifications@github.com>
- Date: Fri, 24 Jun 2016 19:10:14 -0700
- To: w3c/webcomponents <webcomponents@noreply.github.com>
- Cc:
Received on Saturday, 25 June 2016 02:10:45 UTC
The problem here is that `super()` must be made from your custom element to `HTMLElement`'s constructor, and `HTMLElement`'s constructor has no way of knowing inside which context the element was created when `new MyForm` is called. See discussions in https://github.com/w3c/webcomponents/issues/369. It is possible that we can extend the existing API to allow this use case by adding `createElement` which sets a special flag on the construction stack to indicate that a given custom element belongs to a specific shadow tree but this would mean that `new MyForm` wouldn't work for such custom elements. --- 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/488#issuecomment-228501557
Received on Saturday, 25 June 2016 02:10:45 UTC