- From: Liam Quinn <liam@htmlhelp.com>
- Date: Tue, 09 Sep 1997 16:11:38 -0400
- To: Arnaud Le Hors <lehors@w3.org>
- Cc: www-html@w3.org
-----BEGIN PGP SIGNED MESSAGE----- At 02:45 PM 09/09/97 +0200, Arnaud Le Hors wrote: >> First, I have a JavaScript that requires the use of a NAME attribute in an >> IMG tag. This attribute has not been included in any of the W3C DTDs as >> yet, and doesn't appear to be in the 4.0 draft yet either. >> >Sorry, I don't understand what "a JavaScript that requires" means. Where >does this piece of code comes from? How does this mean the IMG element >has to have a name attribute? Couldn't that simply be a bug in the >script instead? As far as I know no W3C vendor ever asked for this >attribute to be added... JavaScript and other scripting languages seem to depend on NAME attributes on most elements, even though the ID attribute makes NAME redundant. (It's not easy to find any reference information at Netscape, but <http://www.netscape.com/eng/mozilla/Gold/handbook/javascript/navobj.html#k eyobj> indicates JavaScript's use of a NAME attribute on the FORM element.) The HTML 4.0 draft currently lists a NAME attribute for IMG in the text of the draft [1] but not in the DTD [2]. I assume the listing in the text is an error since the comment with it is "submitting objects with forms", for which the IMG element is not used. [1] http://www.w3.org/TR/WD-html40/struct/includes.html#h-7.7.2 [2] http://www.w3.org/TR/WD-html40/sgml/dtd.html -----BEGIN PGP SIGNATURE----- Version: PGP for Personal Privacy 5.0 Charset: noconv iQB1AwUBNBWteA/JhtXygIx1AQHPVQL9HLgPiifkcXP+7rLXHfcbkKiExYk1T2Fu 8crJ0sxRWlWRES1NfYfnq32/5qbnoT+5+1XY9X7jWHd24NVOhhnmLKvdWr3eo8wZ VG9g96o3E/dwJPUvY6ACUbyDOJ7ekfzK =QlwM -----END PGP SIGNATURE----- Liam Quinn =============== http://www.htmlhelp.com/%7Eliam/ =============== Web Design Group Enhanced Designs, Web Site Development http://www.htmlhelp.com/ http://enhanced-designs.com/ ====== PGP Key at http://www.htmlhelp.com/%7Eliam/pgp.html =====
Received on Tuesday, 9 September 1997 16:10:44 UTC