title: Markup validation error when using CFForm
body: <p>Does anyone know of a solution to the following markup validation error? I'm not sure if this is an issue in ColdFusion or my own code, but the output of the following snippet does not validate correctly on W3C markup validation service:</p>
  
  <p>Code</p>
  
  <pre><code>        &lt;cfform class="SearchForm" id="SearchForm" action=""&gt;
              &lt;fieldset&gt;
                  &lt;cfinput type="text" class="TNameField" name="TName" autosuggest="cfc:MyCFC.MyFunction({cfautosuggestvalue})"&gt;
                  &lt;input type="button" class="TNameButton" value=" " /&gt;
              &lt;/fieldset&gt;
          &lt;/cfform&gt;
  </code></pre>
  
  <p>HTML Output</p>
  
  <pre><code>&lt;form id="SearchForm" action="" method="post" class="SearchForm" onsubmit="return _CF_checkCFForm_1(this)"&gt;
  </code></pre>
  
  <p>The validation error is associated with the "name" attribute that ColdFusion automatically assigns to . The error message is the following:</p>
  
  <blockquote>
    <p><strong>there is no attribute "name"</strong>
        
    
    <p>the document type you are using does
    not support that attribute for this
    element. This error is often caused by
    incorrect use of the "Strict" document
    type</p>
  </blockquote>
  
  <p>I am assuming the AJAX requires the "name" attribute to function correctly. How do I resolve this validation error? Do I have to change my document type?</p>