- From: flavi1 <notifications@github.com>
- Date: Thu, 09 Mar 2023 08:36:36 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/dom/issues/831/1462377264@github.com>
Hello, I'm sure that we need a way to get declarative shadow DOM. But, please take in consideration a **deep problem first**. Since each framework can register their own HTML Elements, HTML is no longer a language, but a meta language in which every body can invent and bring its own vocabulary. **A Babel tower.** I think this is an anti-standard approach. I read on the Internet that web components technology "make it possible to develop framework-agnostic, custom components." But in reality this technology, for now, consists in hiding frameworks under shadow dom of custom elements. Moreover, ShadowDom and Custom Elements APIs are so complex that most sites recommend using frameworks to implement them! This situation increase the web complexity in a non acceptable way. I think we have to take a long time to resolve this big problem first, before trying to increase Custom Elements behaviors. Please have a look on this project. [https://flavi1.github.io/html-dynamic-extensions/](https://flavi1.github.io/html-dynamic-extensions/) This is a work in progress to propose new declarative dynamic extensions to html. In it, templates elements are used to generate light DOM in interaction with a data layer (model instance elements inspired from XForms spec) The approach is simple Since templates elements are defined in the declarative space (the HTML document), their scope concerns the light DOM (they are page specific). But in addition, there is an external layer, "the design layer", that aims to describe how user agent have to write shadow DOM of classical HTML elements (non Customs) This is an fully **javascript non obstrusive** alternative to the Custom Element API. All shadow DOM templates are provided in an external XML ressource (XDSS files for XML Design System Sheet) Since the target of these templates are the classical HTML elements, the XDSS are natively interchangeable. -- Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/831#issuecomment-1462377264 You are receiving this because you are subscribed to this thread. Message ID: <whatwg/dom/issues/831/1462377264@github.com>
Received on Thursday, 9 March 2023 16:36:48 UTC