News for hackers. Stuff that matters.
Re:“Make HTML Great Again”: Campaign site teardowns by gkoberger on Monday March 21, 2016 @05:18PM (#11332153)
Don't upvote this. This is a shallow ad for their agency (which evidently doesn't do WordPress development).

This article highlights the worst of the "webmaster" mentality – ignoring the end results in favor of things like validation errors and tools used.

They trust Hillary as a politician because the source code has secret comments? Seriously? And then they trash Chris Christie for the same exact thing. And Bernie gets two thumbs down (and a shot at him for being a socialist... along with an ad for the authors) because he used WordPress? They call his site a mess but don't describe why. Bernie's site is impeccably designed and works well.

I'm sad about this article. Design and the web play a HUGE role in presidential campaigns. I happen to believe that you can tell a lot about a candidate from their website. But this was a shallow, pedantic and opportunistic waste of a potentially great topic.

Re:“Make HTML Great Again”: Campaign site teardowns by dccoolgai on Monday March 21, 2016 @05:25PM (#11332212)
Not defending all of their content/conclusions - but the podcast was only like 20 minutes long so I think they were using validation errors as a general "proxy metric" for the care/attention-to-detail the candidates used in making their sites. You might call it "sad and pedantic" if there were other articles out there doing the same thing, but this was really the only one I've come across (and I generally pay attention) that focused on a comparative "peeking under the hood" of the respective sites. I wish they hadn't taken that jab at Bernie, too, but the podcast was interesting if for no other reason than it's the only one of its kind I've seen thus far. I agree with you that it is a super-important topic and I hope we see some deeper dives in the future.
Re:“Make HTML Great Again”: Campaign site teardowns by ikeboy on Monday March 21, 2016 @05:23PM (#11332194)
When even Google doesn't care enough to pass validation https://validator.w3.org/nu/?doc=https%3A%2F%2Fwww.google.co... you wonder if it matters. I once went through the Alexa top 10 or so, IIRC not one passed validation.
Re:“Make HTML Great Again”: Campaign site teardowns by bphogan on Monday March 21, 2016 @05:40PM (#11332341)
This is the "broken windows" effect in real life.

"Google doesn't care, and these other sites don't care, so why should I care?"

I have found that validation serves a very important purpose - to guide your development. I have lost count of the times I have encountered CSS with all sorts of extra junk because things didn't look right, and the reason for it was that the underlying HTML was invalid.

Yes, the browsers are smart. But they are still guessing. If you leave out a tag, the browser will close it for you. Not always in the right spot. Invalid pages could also result in a DOM tree that's not quite right, so JavaScript could be affected.

Developers should validate their pages just as they lint their code, to ensure quality.

Of course, if you're using cutting-edge elements, they won't validate. But that's a little different story. It's not a reason to not validate, it's just a reason to filter out those errors.

Re:“Make HTML Great Again”: Campaign site teardowns by insanebits on Monday March 21, 2016 @06:52PM (#11332847)
I do not agree with your point that you have to pass validation. First of all I don't say that you should leave unclosed tags for browser to figure out. Or doing something crazy to break things.

Some of us still have to support older IE versions which needs to some workarounds to work with it. Even the validator.w3.org doesn't pass it's own validator. https://validator.w3.org/nu/?doc=https%3A%2F%2Fvalidator.w3....

My point is that we need to use modern tools like html5 while still being backwards compatible with older browser which means breaking some w3c rules.

Another valid case off the top of my head for breaking w3c(haven't tested if it passes validation) would be `<meta>` tags inside body tag. Which is part of the microdata format. Normally you're not supposed to put meta tags outside head but for while using mircrodata you sometimes have to rely on meta tags because your design doesn't allow for required(by microdata) to be shown on the website, so you use meta tag, which doesn't do any harm since it's not rendered for the user.

Re:“Make HTML Great Again”: Campaign site teardowns by ikeboy on Monday March 21, 2016 @06:57PM (#11332876)
html doesn't give a (valid) way to be backward compatible? That sounds like a design flaw.
Re:“Make HTML Great Again”: Campaign site teardowns by wagglycocks on Tuesday March 22, 2016 @01:36PM (#11338287)
It is a design flaw in the older browsers, not the spec itself.

HTML hasn't changed in years, and XHTML is largely backwards compatible.

Re:“Make HTML Great Again”: Campaign site teardowns by fisadev on Tuesday March 22, 2016 @12:58AM (#11334505)
> This is the "broken windows" effect in real life.

Had to point this out: windows are real, the broken windows effect is something from "real life".

Re:“Make HTML Great Again”: Campaign site teardowns by bphogan on Tuesday March 22, 2016 @10:22AM (#11336778)
Yea it was poorly phrased, but so many people brush off the platitudes like "broken windows" in our industry.
Re:“Make HTML Great Again”: Campaign site teardowns by nevir on Monday March 21, 2016 @05:28PM (#11332255)
It doesn't matter any more, and hasn't for years.

Browser tech has been moving faster than validators can keep up. Newly specced features are being polyfilled, etc.

Browsers and search crawlers deal with this; probably time for validators to be about something other than the site's static assets.

Re:“Make HTML Great Again”: Campaign site teardowns by eip on Tuesday March 22, 2016 @12:51AM (#11334480)
Re:“Make HTML Great Again”: Campaign site teardowns by e40 on Monday March 21, 2016 @05:26PM (#11332242)
This is why I read comments on HN before visiting the site.