Schlipak/Yoru

Use CustomElements

Opened this issue · 1 comments

Right now we don't actually use the CustomElementRegistry, which is standard in the WebComponents draft. Technically none of the Yoru components are currently valid. Use this opportunity to completely rewrite the component instantiation system, it is badly designed and will get hard to maintain (it already is, even for me, who wrote it in the first place)

A better design in the ShadowMaker - Component couple would also fix the broken Preloader. Maybe just get rid of ShadowMaker alltogether, it should now have the responsibility to create shadows in the first place, Components should, as they own the shadowRoot.

Partial support in #9