27 ms·
My complaint--and MDN and the W3C's complaint--with it is that it puts a closing slash on HTML void elements. While this is allowed for backwards compatibility
by assimpleaspossi 3y ago
My complaint--and MDN and the W3C's complaint--with it is that it puts a closing slash on HTML void elements. While this is allowed for backwards compatibility with XHTML, it is not specified as being useful or needed in any HTML specification and has led to countless confusion among noobs who don't read the specification and only follow online articles.
https://html.spec.whatwg.org/dev/syntax.html#start-tags https://html.spec.whatwg.org/dev/syntax.html#start-tags
- littlecranky67 3y agoThe closing slash is mandatory for jsx/tsx - and thus, most React devs - though.
- assimpleaspossi 3y agoThat has nothing to do with HTML.
- strbean 3y agoI kind of hate that. Why have variation in the grammar based on what tag is used? Always using `<tag></tag>` or `<tag/>` is so simple and easy.