Elliott C. Back: Internet & Technology

Google Doesn’t Validate

Posted in Google by Elliott Back on May 14th, 2005.

Has anyone ever noticed that Google doesn’t validate, and doesn’t even have a doctype declaration?

Here’s a minimal set of changes to get Google’s homepage up to speed:

  1. Add a doctype, such as XHTML 1.0
  2. Add a terminator / for the meta, br, and img tags
  3. Add type attributes for script and style tags
  4. Quote nonliteral attribute values like #ffffff nearly everwhere
  5. Make javascript events lowercase, so onLoad becomes onload
  6. Replace topmargin attribute with CSS margin style

You can see a validating copy here. Also, compare with the validation of any MSN search page: validator.w3.org/check?uri=http://search.msn.com/results.aspx?FORM=MSNH&srch_type=0&q=something

This entry was posted on Saturday, May 14th, 2005 at 7:58 pm and is tagged with css margin, type attributes, img tags, doctype declaration, javascript events, google, style tags, ffffff, search msn, msn search, search page, terminator, validation, meta, br. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback.

20 Responses to “Google Doesn’t Validate”

  1. anon says:

    TL;DR, but some of the rules they broke are probably used to make the page smaller in download size

  2. Ted says:

    Mr. George Bezel, it’s never nice to call someone an idiot because they don’t seem to think as stupidly as you do.

  3. BLIND PEOPLE voice says:

    Validation is most important for people with handicap to be able to read web content, for example
    BLIND PEOPLE can easy use their machines only on W3C valid sites.

  4. Terminator says:

    SO WHAT!!!!! Big ****** deal.

  5. John says:

    Google is too awesome to have to validate.
    If you check some other big sites, most of them don't validate.

    They don't want the tyranny of W3C.

  6. They're making billions of dollars!! Can't they afford to have someone validate their stinking code?!?!?

    • Tyler Plack says:

      Google has posted a video about this, and their website doesn’t validate to save download time. It may be minimal, but in perspective, with a website that is an input form and a logo, every line counts.

  7. Um says:

    Who the hell cares if it validates or not. As long as it’s functional, lays out right and the client is happy, nobody f***ing cares. This whole validation thing is nothing but an overdrawn inside joke created by anal retentive web developers and the minority of the moaning and groaning blind community.

  8. Nick says:

    Nonsense, it is far more important to be supporting at least *some* documented standard than to support any specific one.

    We support standards so as to ensure compatibility with current and future browsers – that’s really the only reason – and since XHTML (served as XML) works correctly on fewer browsers than HTML 4.0 does, supporting it at this stage shouldn’t really be your number one priority.

    Personally I use XHTML served as text. It’s not fully compliant with the standard, but it works on most (all?) browsers, and it will be less work to convert it later when IE finally catches up with 2007 (or should that be 1999?)

    And yes, it would be nice if Google would take some steps in this direction.

  9. Whatever says:

    Please do not discuss validation until you move to XHTML Strict. I’m tired of hearing whiny designers and posers lambaste other sites for not “validating” when they’re using some weak-*** interim markup.

    Go strict, or go home.

  10. p.s. Try clicking the XHTML tag at the bottom of the page :D

  11. What is more annoying is that Google ads don’t seem to validate meaning that otherwise-clompliant sites come up with hundreds of warnings / errors.

    Tidy gives 6 warnings for this page, things like links not having href=”" and scripts not specifying content-type.

    Interestingly it also gives you 31 warnings for the advert bar included. Seems like google isn’t the only offender :)

  12. Elliott Back says:

    Not sure what you mean, Eric:

    Valid RSS?

    According the RSS validator, things are OK. I get a warning because of a script tag in one old post.

  13. Eric says:

    I’ve noticed this too. But I also noticed that your version doesn’t validate with Tidy:

    “line 28 column 209 – Warning: ‘

  14. George Bezel says:

    Then again, JWK, you are an idiot.

  15. Elliott Back says:

    Yeah, but by the same argument, Google has so many distributed servers that a few hundred terabytes don’t really matter to them ;)

  16. ceejayoz says:

    On the other hand, saving a single character or two results in terabytes of saved bandwidth for the amount of traffic they get.

  17. Elliott Back says:

    Google, as one of the web’s largest companies, should work towards web-standards whenever possible. It’s true that the difference between their home page or any of their pages and a valid XHTML page are minor, but it would be a show of good faith if they *did* validate.

  18. JWK says:

    That doesn’t seem like a big deal to me, honestly.

Leave a Reply

Powered by WP Hashcash