DEV Community

Discussion on: [HTML5/JS] Define a custom self closing (void) HTML element like BR and IMG

Collapse
 
nektro profile image
Meghan (she/her)

It seems the W3C had decided not to allow this, but if they ever changed their mind, it would be added to customElements.define since Custom Elements is at v1 now and document.registerElement is from v0 and will be being deprecated soon.