Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
347 views
in Q2A Core by

Tiny request to fix syntax for next release: "onclick" instead "onClick"

It should always be lowercase to be xhtml valid, see e.g. here http://stackoverflow.com/questions/9624345/why-w3-validator-says-onclick-is-not-valid

As q2a has "HTML 4.01 Transitional" I think this is not that important, but looking to the future, it would be nice to have it implemented.

by
As I've said on other questions, HTML5 is the way forward, which doesn't care about case. However, a consistent syntax using all lowercase tag names and attribute names would be better IMO. Most people are calling that a best practice as far as I can tell.
by
I thought of jquery when updating the code from 1.5.3 to 1.5.4 where gidgreen added onClick="qa_show_waiting_after(this, false)" to many lines. This had been possible with a few lines of jquery in one of the js files :)
https://github.com/q2a/question2answer/commit/2c67b77c7121919030354029b001f2b8ae5d8eec

Please log in or register to answer this question.

...