Slight distinction…
onclick = valid… onClick == invalid.
This was fixed in some spots… But I believe it pops up in other spots.
http://wiki.rubyonrails.com/rails/pages/ReleaseNotesForEightFive
Changed link_to with Javascript confirmation to use onclick instead of
onClick for XHTML validity [Scott B.]
That said, validation is only one part of accessibility.