<?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>12714</bug_id>
          
          <creation_ts>2011-05-20 15:21:58 +0000</creation_ts>
          <short_desc>&lt;input /&gt; tag not accepted within a &lt;form&gt; block</short_desc>
          <delta_ts>2011-08-23 20:22:22 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</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>musthave6</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>elimerl</cc>
          
          <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>48661</commentid>
    <comment_count>0</comment_count>
    <who name="">musthave6</who>
    <bug_when>2011-05-20 15:21:58 +0000</bug_when>
    <thetext>This HTML Code gives the following error:

document type does not allow element &quot;input&quot; here; missing one of &quot;ins&quot;, &quot;del&quot;, &quot;h1&quot;, &quot;h2&quot;, &quot;h3&quot;, &quot;h4&quot;, &quot;h5&quot;, &quot;h6&quot;, &quot;p&quot;, &quot;div&quot;, &quot;address&quot;, &quot;fieldset&quot; start-tag

          &lt;input type=&quot;button&quot; name=&quot;submit&quot; value=&quot;Login&quot; onclick=&quot;login();&quot; /&gt;

Regarding to W3C&apos;s own examples, an &lt;input&gt; tag are place within a &lt;form&gt; block.
The source look like this:

&lt;form id=&quot;loginForm&quot; action=&quot;#&quot; method=&quot;post&quot; style=&quot;margin: 0 auto; width: 50%&quot;&gt;
  &lt;fieldset&gt;
    &lt;legend&gt;Inloggning&lt;/legend&gt;
      &lt;p&gt;&lt;label&gt;User:&lt;/label&gt;&lt;input type=&quot;text&quot; name=&quot;username&quot; /&gt;&lt;/p&gt;
      &lt;p&gt;&lt;label&gt;Password:&lt;/label&gt;&lt;input type=&quot;password&quot; name=&quot;password&quot;   onkeypress=&quot;CheckEnter()&quot; /&gt;&lt;/p&gt;
    &lt;/fieldset&gt;
    &lt;input type=&quot;button&quot; name=&quot;submit&quot; value=&quot;Login&quot; onclick=&quot;login();&quot; /&gt;
    &lt;input type=&quot;hidden&quot; name=&quot;challenge&quot;    value=&quot;60e1c4c8e45f25ca4992a6ed2c5622f0795757aecb610fb3f03fe7fab39fcb10df3b47e101d0561a&quot;/&gt;
&lt;/form&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48662</commentid>
    <comment_count>1</comment_count>
    <who name="">musthave6</who>
    <bug_when>2011-05-20 15:23:30 +0000</bug_when>
    <thetext>Might be related to issue #12706</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55726</commentid>
    <comment_count>2</comment_count>
    <who name="Etienne Miret">elimerl</who>
    <bug_when>2011-08-23 20:22:22 +0000</bug_when>
    <thetext>The &lt;form&gt; element allows only script and block level elements as children:
http://www.w3.org/TR/html4/interact/forms.html#h-17.3

However, form controls, including &lt;input&gt; are inline level elements:
http://www.w3.org/TR/html4/sgml/dtd.html#inline

Thus, the last two &lt;input&gt; in the HTML code given are invalid.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>