W3C home > Mailing lists > Public > www-html-editor@w3.org > January to March 2000

no "name" attibute in XHTML

From: Trish Holder <tholder@mninter.net>
Date: Fri, 3 Mar 2000 11:03:09 -0600
Message-ID: <000501bf8532$5b827ac0$af38b2d0@63lz7>
To: <www-html-editor@w3.org>
Dear Sir/Madam

Please direct this to an individual who can address the following issue with
XHTML.  Thank you.

Why are you deprecating the NAME attribute? Please consider the following
code:

<a href="foo.htm" onmouseover="document.happy.src='image_on.gif'"
onmouseout="document.happy.src="image_off.gif'"><img src="image_off.gif"
alt="image" name="happy" border="0" /></a>

ID cannot be substituted for NAME or else you get the following JavaScript
error:

document.happy is not an object

Since "name" is necessary for the JavaScript event handler to recognize the
image space, how can you deprecate this attribute? What is your solution?

Trish Holder
03/03/00
Received on Friday, 3 March 2000 12:01:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:45 GMT