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

@taburetkin, you could achieve that by writing your pages using _XML syntax for HTML_ (formerly referred to as "XHTML"):

> The second concrete syntax is XML. When a document is transmitted with an [XML MIME type](https://mimesniff.spec.whatwg.org/#xml-mime-type), such as [application/xhtml+xml](https://html.spec.whatwg.org/multipage/iana.html#application/xhtml+xml), then it is treated as an XML document by web browsers, to be parsed by an XML processor. Authors are reminded that the processing for XML and HTML differs; in particular, even minor syntax errors will prevent a document labeled as XML from being rendered fully, whereas they would be ignored in the HTML syntax.

https://html.spec.whatwg.org/multipage/introduction.html#html-vs-xhtml

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

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

Received on Wednesday, 11 January 2023 12:25:45 UTC