<?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>3448</bug_id>
          
          <creation_ts>2006-07-12 23:27:05 +0000</creation_ts>
          <short_desc>nested tags should be flaged as invalid</short_desc>
          <delta_ts>2006-07-21 02:26:21 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>LATER</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="Ervin">w3cbus</reporter>
          <assigned_to name="Terje Bless">link</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>10464</commentid>
    <comment_count>0</comment_count>
    <who name="Ervin">w3cbus</who>
    <bug_when>2006-07-12 23:27:05 +0000</bug_when>
    <thetext>Overview Description:
According to http://www.w3.org/TR/2002/REC-xhtml1-20020801/#prohibitions
a form tag cannot be a descendant of another form tag
However, a nested form validates correctly.

Steps to Reproduce:

Validate this test case:
====================
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
   &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=iso-8859-1&quot; /&gt;
&lt;title&gt;TITLE&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;f1&quot; action=&quot;/action0&quot;&gt;
&lt;div&gt;&lt;form  id=&quot;f2&quot; action=&quot;/action1&quot;&gt;&lt;div&gt;hello 1&lt;/div&gt;&lt;/form&gt;&lt;/div&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
==================

Actual Results:
Passed validation

Expected Results:
Failed validation, 1 error

Build &amp; Date
Markup Validation Service v0.7.2 on 2006-07-12</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10636</commentid>
    <comment_count>1</comment_count>
    <who name="Olivier Thereaux">ot</who>
    <bug_when>2006-07-21 02:26:21 +0000</bug_when>
    <thetext>The nesting scenario you describe is indeed non conformant (as explained in http://www.w3.org/TR/xhtml1/#prohibitions ) but if you look at http://www.w3.org/TR/xhtml1/#h-4.9 in the XHTML specification, you will see an explanation of why constraints regarding *any* nesting depth cannot be expressed in the formal grammar (DTD) used by XHTML 1.0, and therefore it can not be (in)validated.

I am setting this issue as &quot;Later&quot;, knowing that this is the job for a conformance checker, not a mere validator.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>