[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] html/javascript question.. linux < OT < baseball strike
- Subject: [ale] html/javascript question.. linux < OT < baseball strike
- From: gary at edisoninfo.com (Gary MacKay)
- Date: Tue, 20 Aug 2002 16:08:48 -0400
Is it possible that you need quotes? name="foo" to satisfy the standards?
Geoffrey wrote:
> For a long while now I I've used a bit of javascript to change an image
> when the image is selected (onMouseDown()). To do this, the img tag
> contains a 'name=foo' attribute which is used by the javascript to
> locate the image.
>
> I just happened to run the w3c html validator against this code and it
> notes that 'name=foo' is not a valid attribute for HTML 4.0. Removing
> the reference rids me of the validator error, but then the onMouseDown()
> does not work, and I get a javascript error in the javascript console.
>
> Anyone else doing something like this, I guess in a different way, so as
> to please both html 4.0 and javascript??
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.