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.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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 anddocument.registerElement
is from v0 and will be being deprecated soon.