Comment by eddyg
18 hours ago
You left out the rest of the spec:
> On void elements, it does not mark the start tag as self-closing but instead is unnecessary and has no effect of any kind. For such void elements, it should be used only with caution — especially since, if directly preceded by an unquoted attribute value, it becomes part of the attribute value rather than being discarded by the parser.
(The void elements are listed here: https://developer.mozilla.org/en-US/docs/Glossary/Void_eleme... )
All of that is a far cry from elements not being allowed to be closed. Please point to where the spec mentions that. MDN is not the spec.