This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 11888 - onclick="return smth", onsubmit="return smth" fails validation
Summary: onclick="return smth", onsubmit="return smth" fails validation
Status: RESOLVED FIXED
Alias: None
Product: HTML Checker
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Michael[tm] Smith
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-27 11:15 UTC by ghost
Modified: 2015-08-23 07:07 UTC (History)
0 users

See Also:


Attachments

Description ghost 2011-01-27 11:15:15 UTC
If I have a form with such code:
<form action="" method="post" onsubmit="return validationFunction();">

Or a such link:
<a href="http://example.com" onclick="return someFunction();">test</a>

Validator marks the code as error:
Bad value return validationFunction(); for attribute onsubmit on element form: invalid return

Bad value return someFunction(); for attribute onclick on element a: invalid return
Comment 1 Michael[tm] Smith 2011-01-27 12:35:23 UTC
please try it again now and if you still see the error, let me know