Schlipak / Yoru

夜 -- JavaScript microframework based on Template and Shadow
MIT License
2 stars 0 forks source link

Use CustomElements #8

Open Schlipak opened 7 years ago

Schlipak commented 7 years ago

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.

Schlipak commented 7 years ago

Partial support in #9