Re: [w3c/webcomponents] How to wait for will-be custom elements to be upgraded? (#558)

Do `whenDefined` and `:defined` help? See [an example in the spec](https://html.spec.whatwg.org/multipage/scripting.html#dom-customelementregistry-whendefined).

```
Promise.all(
      [...articleContainer.querySelectorAll(":not(:defined)")]
        .map(el => customElements.whenDefined(el.localName))
```

-- 
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/558#issuecomment-243322794

Received on Tuesday, 30 August 2016 03:26:48 UTC