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

Re: [VE][html5] HTML5 onclick with invalid return

From: Michael[tm] Smith <mike@w3.org>
Date: Mon, 25 Apr 2011 23:16:03 +0900
To: Franco Catena <francocatena@gmail.com>
Cc: www-validator@w3.org
Message-ID: <20110425141602.GA38512@sideshowbarker>
Hi Franco,

So for not having replied to this before now. I have since fixed the bug
that was causing this, and pushed the fix to the validator. So please check
it again, and if you're still seeing this problem, let me know

  --Mike

Franco Catena <francocatena@gmail.com>, 2011-01-21 13:11 -0300:

> 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.

-- 
Michael[tm] Smith
http://people.w3.org/mike
Received on Monday, 25 April 2011 14:16:07 GMT

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