Comment by assimpleaspossi
9 months ago
The term for such "other developers" is "hobbyists".
There are other terms but I won't list them here.
9 months ago
The term for such "other developers" is "hobbyists".
There are other terms but I won't list them here.
Sometimes "other developers" is also "coworkers".
I've found less ambiguity to be a better thing than not, where possible. Self-closing a tag that can't contain anything is one such example of removing ambiguity for "hobbyists".
One would need to know the tag is self-closing in order to put the closing slash in. Right? So if one knows it's self-closing already, why do they need to add the extra weight?
Makes no sense.
If one wants to add content to a self-closing element, one has far more problems than we're talking about here.
It can be done by libraries, for example, which want their output to be valid in both HTML and XHTML.
Note that's it's not a syntax error in HTML - because HTML doesn't have syntax errors. The HTML5 spec tried to codify all the weird Postel's law quirks of existing HTML4 parsers, and in this case, tells you how to ignore the extra / if you're a parser. Nothing is a syntax error.
1 reply →
> If one wants to add content to a self-closing element, one has far more problems than we're talking about here.
Yes.