<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>11888</bug_id>
          
          <creation_ts>2011-01-27 11:15:15 +0000</creation_ts>
          <short_desc>onclick=&quot;return smth&quot;, onsubmit=&quot;return smth&quot; fails validation</short_desc>
          <delta_ts>2015-08-23 07:07:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>HTML Checker</product>
          <component>General</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ghost</reporter>
          <assigned_to name="Michael[tm] Smith">mike</assigned_to>
          
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>44793</commentid>
    <comment_count>0</comment_count>
    <who name="">ghost</who>
    <bug_when>2011-01-27 11:15:15 +0000</bug_when>
    <thetext>If I have a form with such code:
&lt;form action=&quot;&quot; method=&quot;post&quot; onsubmit=&quot;return validationFunction();&quot;&gt;

Or a such link:
&lt;a href=&quot;http://example.com&quot; onclick=&quot;return someFunction();&quot;&gt;test&lt;/a&gt;

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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44794</commentid>
    <comment_count>1</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-01-27 12:35:23 +0000</bug_when>
    <thetext>please try it again now and if you still see the error, let me know</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>