<?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>13677</bug_id>
          
          <creation_ts>2011-08-05 03:08:57 +0000</creation_ts>
          <short_desc>onsubmit attribute not allowed on form</short_desc>
          <delta_ts>2015-08-23 07:07:24 +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>NEEDSINFO</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 name="Brad">brcasey</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>54213</commentid>
    <comment_count>0</comment_count>
    <who name="Brad">brcasey</who>
    <bug_when>2011-08-05 03:08:57 +0000</bug_when>
    <thetext>The validator for HTML5 flags the onsubmit attribute of the form element as not valid. From W3C:

http://www.w3schools.com/html5/html5_ref_eventattributes.asp

onsubmit is an allowed form event. 

The error I get is below:

Attribute form not allowed on element form at this point.

...method=&quot;post&quot; target=&quot;hidden_iframe&quot; onsubmit=&quot;submitted=true;&quot;&gt;

Attributes for element form:
Global attributes
accept-charset
action
autocomplete
enctype
method
name
novalidate

Brad</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55720</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2011-08-23 19:59:44 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; From W3C:
&gt; http://www.w3schools.com/[...]

Please note that W3Schools != W3C.


&gt; onsubmit is an allowed form event. 
[...]
&gt; Attribute form not allowed on element form at this point.

The error message says that attribute &quot;form&quot; is not allowed on element &quot;form&quot;, I don&apos;t see anything about onsubmit in it.  A URL to a document or a complete HTML5 fragment with which the problem can be reproduced would be helpful.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58896</commentid>
    <comment_count>2</comment_count>
    <who name="Michael[tm] Smith">mike</who>
    <bug_when>2011-10-25 08:35:13 +0000</bug_when>
    <thetext>see comment #1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>