Active-CSS / active-css

The epic event-driven browser language for UI with functionality in one-liner CSS. Over 100 incredible CSS commands for DOM manipulation, ajax, reactive variables, single-page application routing, and lots more. Could CSS be the JavaScript framework of the future?
https://activecss.org
Other
42 stars 7 forks source link

Get the core allowing <my-component /> syntax #227

Closed bob2517 closed 2 years ago

bob2517 commented 2 years ago

Currently, when being built as ACSS components, the core only supports custom elements that have opening and closing tags.

Like:

<my-component></my-component>

When you don't have anything nested, you should just be able to write this:

<my-component />

So get the core being able to do this.

bob2517 commented 2 years ago

Closing. Custom elements appear to require closing tags per the DOM spec. Fair enough.

https://stackoverflow.com/questions/23961178/do-custom-elements-require-a-close-tag

bob2517 commented 2 years ago

I was getting weird document parsing errors when trying to get this to work, hence I'm dropping this as it doesn't look like it's allowed.