3 ms·
I recognize the minifier significance. But wait, there are validators (!?) that choke on valid (!) syntax?
by ajross 14y ago
I recognize the minifier significance. But wait, there are validators (!?) that choke on valid (!) syntax?
- TazeTSchnitzel 14y agoLacking semicolons is an error, most validators error on it unless you tell them to ignore it.
- mistercow 14y agoAlso, any minifier that turns valid javascript into invalid javascript is broken, full stop.
- ajross 14y agoYes yes, but some do, it was a giant flame war, and I'll admit that it can be a practical issue (if not a correctness one) for javascript to rely on automatic semicolon insertion if it means you can't use your minifier of choice. But trying to use a "validator" that validates a languages other than the one you are writing is just plain insane.