Re: [WICG/webcomponents] Custom 'void' or self-closing elements (HTML parser changes) (#624)

What's wrong with a self closing custom element? Seems useful in reducing verbosity in cases like custom input fields or icon wrappers where a closing tag is not necessary.

```html
<custom-date-input  format="iso" />
<fa-icon  name="github" />
```
vs
```html
<custom-date-input  format="iso"></custom-date-input>
<fa-icon  name="github"></fa-icon>
```
Where the closing tag is unnecessary and implies to consumers that the element could contain children.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/624#issuecomment-1826447469
You are receiving this because you are subscribed to this thread.

Message ID: <WICG/webcomponents/issues/624/1826447469@github.com>

Received on Sunday, 26 November 2023 00:07:32 UTC