Re: name attribute

by Ilya Dubinsky <ilya788(at)inter.net.il>

 Date:  Tue, 11 Apr 2000 13:32:44 +0200
 To:  <amcbainezzell(at)alum.mit.edu>
 Cc:  hwg-languages(at)hwg.org
 In-Reply-To:  baron
  todo: View Thread, Original
                         Hi!
         Below is a quotation from W3C site:

"HTML 4.01, released on 24th December 1999, fixes bugs in the HTML 4.0 
specification, which for instance, omitted the name attribute on the img 
and form elements. HTML 4.01 defines the semantics and datatypes for HTML."
         So that's the reason - there's NO name attribute on the img tag 
according to original 4.0 spec. And it's a bug.


>I'm trying to validate some code (HTML 4.0 Transitional) using the W3C
>HTML Validation service, and I get the following report:
>
>Below are the results of attempting to parse this document with an
>SGML parser.
>Line 82, column 11:
>   <form name="cSelect" action="main.asp">
>              ^
>Error: there is no attribute "NAME"
>Line 90, column 208:
>   ... le')" onmouseout="img_inact('profile')"><img name="profile"
>src="~grap ...
>                                                         ^
>Error: there is no attribute "NAME"
>
>
>However, the HTML 4 specs show that both IMG and FORM tags can have
>NAME attributes. Any idea why the validator is rejecting these?
>
>Thanks.

				Yours, Ilya.

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA