Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Hmm, too bad that the HTML4 code they propose fails validation with my validator (Nokigiri) and the HTML5 code they propose doesn't seem to work on HTML4 pages.

I solved it by mixing and matching the two: <div class="g-plusone" size="small" count="false"></div>

This fails the official W3C validator but it works with Nokogiri. The odd way to set the language of the button {"lang":"de"} trips up syntax error marking in my IDE too.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: