W3C home > Mailing lists > Public > www-validator@w3.org > January 2011

[VE][html5] HTML5 onclick with invalid return

From: Franco Catena <francocatena@gmail.com>
Date: Fri, 21 Jan 2011 13:11:23 -0300
Message-ID: <AANLkTi=m-qYY-3GA+zCXqv-WDc9fAaY+mCDNUzt5xGbC@mail.gmail.com>
To: www-validator@w3.org
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:45 GMT