Google Pushes Invalid HTML to the World


So, Google started a Google Plus social network. 〔➤ What is Google Plus and Google+ Songs (humor)〕 Along with it is a g+ button, it looks like this:

social network share buttons
Social Network Share Buttons

So, if you want to monetize your writings, it's probably to your advantage to add these social network share buttons. To add g+ button, you get the code at the official Google site at Part of the code is this:

<g:plusone annotation="inline"></g:plusone>

Invalid HTML!

isn't Google supposed to be this moral company who promotes good coding practices and HTML5 for a better world?

Facebook and Twitter isn't doing better. Here's part of Twitter code:

<a href="" class="twitter-share-button" data-via="xah_lee">Tweet</a>

There's no such attribute as data-via.

Here's part of Facebook code:

<div class="fb-like" data-send="true" data-width="450" data-show-faces="true"></div>

Oh, the dilemma, the irony. Where are the gaggle of tech geekers who huff'n'puff about the great import of HTML validation? Are the engineers at these big companies all absolute idiots? Where's the W3C designers who grace us with stern XML and HTML5 specs? Where's the unix idiots with their RFC chant?


[ addendum: actually, attributes starting with data- are valid in HTML5. It's called “custom data attribute”. Thanks to ArgV for correction.]

blog comments powered by Disqus