[VE][html5] HTML5 onclick with invalid return

I have this link:

<a onclick="$('name').setValue(' '); return false;" href="#">X</a>

And the validator gives me:

Bad value $('name').setValue(' '); return false; for attribute onclick on
element a: invalid return

I don't think that this is an "invalid" return statement, in fact there is
an example in this page: http://www.w3.org/TR/html5/author/history.html with
a similar use.

Regards.

Franco Catena.

Received on Saturday, 22 January 2011 07:06:34 UTC