W3C home > Mailing lists > Public > www-validator@w3.org > May 2004

Re: [VE][108] New Error Message Suggestion

From: Ville Skyttä <ville.skytta@iki.fi>
Date: Sun, 23 May 2004 02:50:39 +0300
To: Halsted Trust <treasurer@halsted.org.uk>
Cc: www-validator@w3.org
Message-Id: <1085269838.3919.445.camel@bobcat.mine.nu>

On Fri, 2004-05-21 at 18:01, Halsted Trust wrote:
> I received an error message stating
> "there is no attribute "NAME" in the following extract of code
> onMouseOut="window.status=' '; return true"><IMG name="imgH1"
> The "name" relates to JavaScript used to control rollover images.
> If I can't use "name" in this context, I'd be grateful if you'd advise me
> what I can use instead in my JavaScript to achieve the same result.

You did not mention which DTD / HTML version you're using, so I'll guess
HTML 4.0; <img> does not have a "name" attribute there (it does in
4.01).  Anyway, a better choice might be the "id" attribute.  See

(Or depending on exactly what you want to do, it might be possible to
skip the id/name issue altogether in the rollovers, using something like
<img src="..." onmouseover="this.src='...'" onmouseout="this.src='...'">
but that's off topic on this list :)
Received on Saturday, 22 May 2004 19:50:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:30:44 UTC