W3C home > Mailing lists > Public > www-validator@w3.org > February 2007

Re: Form name complaint on HTML 4.0 Trans

From: Elliotte Harold <elharo@metalab.unc.edu>
Date: Tue, 27 Feb 2007 17:23:09 -0500
Message-ID: <45E4AF4D.8030707@metalab.unc.edu>
To: David Dorward <david@dorward.me.uk>
CC: "Angelos (Exevior.com)" <Angelos@exevior.com>, www-validator@w3.org

David Dorward wrote:
> 
> Angelos (Exevior.com) wrote:
>> The Validator complaint about the form name I used. Check this 
>> website: http://www.exevior.com
>>  
>> The <form name="f"
> 
> And so it should.
> 
> http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#edef-FORM
> 
> I can't see a name attribute there.
> 

The name attribute of the form element went back in in 4.0.1. XHTML 1.0 
transitional allows it. XHTML 1.0 strict does not. This is from the 
transitional DTD:

<!ATTLIST form
   %attrs;
   action      %URI;          #REQUIRED
   method      (get|post)     "get"
   name        NMTOKEN        #IMPLIED
   enctype     %ContentType;  "application/x-www-form-urlencoded"
   onsubmit    %Script;       #IMPLIED
   onreset     %Script;       #IMPLIED
   accept      %ContentTypes; #IMPLIED
   accept-charset %Charsets;  #IMPLIED
   target      %FrameTarget;  #IMPLIED
   >

-- 
´╗┐Elliotte Rusty Harold  elharo@metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/
Received on Tuesday, 27 February 2007 22:23:19 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:23 GMT