Hacker News new | ask | show | jobs
by ajross 5125 days ago
I recognize the minifier significance. But wait, there are validators (!?) that choke on valid (!) syntax?
2 comments

Lacking semicolons is an error, most validators error on it unless you tell them to ignore it.
Also, any minifier that turns valid javascript into invalid javascript is broken, full stop.
Yes 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.