Re: name attribute

by Nancy Hastings-Trew <nancy(at)hypertextdigital.com>

 Date:  Mon, 10 Apr 2000 09:20:35 -0400
 To:  hwg-languages(at)hwg.org
  todo: View Thread, Original
At 13:02 07/04/00 -0700, you wrote:
>
>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.
>
>

I get the same thing with the NAME attribute in an Image tag. AFAIK it's
been deprecated since HTML3 but all current browers accept it. Since JS
rollovers won't work without it (well, they will if you use the images
array index but with nested tables they get messed up...) I decided to
ignore it. If that's the only thing it can find wrong with my pages I guess
I'm doing OK. 


cheers,

Nancy


********************************

hypertext digital publishing
Graphic Design & Website Development 
http://www.hypertextdigital.com
nancy(at)hypertextdigital.com
********************************

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