Live data from Hacker News

Y Combinator site has 66 Errors

validator.w3.org

11–18 of 18 posts

Re: Y Combinator site has 66 Errors

#11
Some of the "errors" you point out are only barely even errors, like missing `alt` attributes (nice for accessibility, not so helpful when the image isn't actually content).

Others like using empty trs for spacing is just old-school HTML wrangling. Could it be improved? Sure. Does it actually matter? Only barely.

Many of the errors are dupes; if you roll them up there are significantly fewer "errors". Which makes sense, because the HTML on HN is trivial to begin with, by design.

What was the point, even?

Re: Y Combinator site has 66 Errors

#13

I hate html why the hell browser the site still work properly even if it has 66 errors

HTML is a document markup language, not a programming language. There's no reason the site should not work in the case of markup not meeting strict standards, certainly not for the errors listed.

Also, it's not even really 66 errors - it's mostly the same three errors repeated over and over (no alt tag for images, adding a div inside a center tag and something to do with the end tag for table row.)

Although, there is also no reason for HN not to conform to standards.

Re: Y Combinator site has 66 Errors

#14
post #4

fun fact: pg hand-wrote the (original) news.yc http server (in arc) and it wasn't standards compliant. it terminated newlines with '\n' instead of '\r\n' causing much pain when trying to integrate any external tools. but, browsers accepted it, so it wasn't worth fixing. Plus, let's ignore the whole "we only learned HTML in 1995 and never looked modern practices again" thing too because, well, it still works. Sometime…

    
..would not even take even 500 seconds.

Re: Y Combinator site has 66 Errors

#15
post #14
post #4

fun fact: pg hand-wrote the (original) news.yc http server (in arc) and it wasn't standards compliant. it terminated newlines with '\n' instead of '\r\n' causing much pain when trying to integrate any external tools. but, browsers accepted it, so it wasn't worth fixing. Plus, let's ignore the whole "we only learned HTML in 1995 and never looked modern practices again" thing too because, well, it still works. Sometime…

..would not even take even 500 seconds.

Well, they are setting charset with headers instead which works fine:

  % curl -I https://news.ycombinator.com/
  HTTP/1.1 200 OK
  Server: cloudflare-nginx
  Date: Sat, 13 Jun 2015 20:09:47 GMT
  Content-Type: text/html; charset=utf-8

Re: Y Combinator site has 66 Errors

#16
post #15
post #14

Earlier quoted context omitted.

..would not even take even 500 seconds.

Well, they are setting charset with headers instead which works fine: % curl -I https://news.ycombinator.com/ HTTP/1.1 200 OK Server: cloudflare-nginx Date: Sat, 13 Jun 2015 20:09:47 GMT Content-Type: text/html; charset=utf-8

Fair enough.. that was the closest to a valid concern I could find in that list of errors anyway.

Re: Y Combinator site has 66 Errors

#18
Many of the pages on w3c.org's own site do not validate completely. The front page validates as XHTML strict, but the other pages linked to from it have errors and are supposed to be HTML5 according to the doctype.
Post reply on HN