Re: Form name complaint on HTML 4.0 Trans

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 UTC