Silent errors include things like malformed tags and attributes, incorrect nesting structure (thus also messing up where CSS rules are applied), and unescaped left-angles and ampersands.
HTML 4/4.1 was kind of messy, and could have rendering issues. So going with an (x)HTML validator was a common thing, as well as a marketable value proposal to clients.
HTML 5 had much "saner" implementations, so validators fell by the wayside as they weren't as necessary for compatibility.
If on the other hand you are not closing tags that autoclose, how can your editor tell you? There is no way to know it's not intended.
But mostly I meant that you don't have to close the autoclosing tags.
If I were inclined to follow Google's guidelines on omitting optional tags, it would be easy to write a stream filter that removed them [3].
But I prefer source templates to have all the explicit properly indented structure, so they're easier to validate and process with XML tools (and by eye), and unintentional mistakes don't sneak through as easily.
For the same reason, I also prefer not to write minified JavaScript source code: that should be done by post-processors, no humans. ;)
[1] https://genshi.edgewall.org/
[2] https://genshi.edgewall.org/wiki/ApiDocs/genshi.output
[3] https://genshi.edgewall.org/wiki/Documentation/streams.html#...
[1] https://www.w3.org/TR/html5/syntax.html#obsolete-permitted-d... [2] https://www.w3.org/TR/html5/infrastructure.html#namespaces
You're right lets not bother ourselves with this small things, cause === and == do the exact same comparison in Javascript and all browsers are exact replicates when implementing html, css and javascript.
Beyond all the sarcasm, in reality, web programming is a hassle. But other programming languages and markups have their quirks as well. I'm glad you found a solution, but it doesn't mean we shouldn't look at the fine details of a specification.
I also don't bother remembering how == works. I use === everywhere. The reason is the same - lower cognitive overhead.
>all browsers are exact replicates when implementing html, css and javascript
The browsers I care about all parse XML correctly.
>I'm glad you found a solution, but it doesn't mean we shouldn't look at the fine details of a specification.
I'm only talking about myself, yes. I only make websites for my personal projects. I'm certainly not a web dev by profession or even by hobby.