W3C home > Mailing lists > Public > www-html@w3.org > September 2001

RE: NAME or ID ?

From: James Craig <james_craig@Powered.com>
Date: Tue, 18 Sep 2001 10:24:26 -0500
Message-ID: <DAD1EF4516FAD411A1D900D0B7B0AC847031E6@exchange.powered.com>
To: "'Murray Macdonald'" <murray@mha.ca>, www-html@w3.org

sorry. what i was trying to say is that some browsers cannot correctly
interpret the difference between the two. for most dhtml application i have
to include both 'name' and 'id' attributes. ('id' doesn't work correctly in
netscape 4)... also, some server side languages (php, for example) will not
catch form variables if they are listed with the 'id' attribute. 

so in theory, 'name' is deprecated and should not be used. 
in practice, it's still necessary in some cases.

james craig
cookiecrook.com
 

-----Original Message-----
From: James Craig [mailto:james_craig@Powered.com]
Sent: Tuesday, September 18, 2001 10:07 AM

'id' is the preferred attribute for xhtml. 'name' has been deprecated.
unfortunately, some browsers 


-----Original Message-----
From: Murray Macdonald [mailto:murray@mha.ca]
Sent: Monday, September 17, 2001 10:59 PM

Is there a favored way to identify instances in new tags?  

  a) <newtag name="foo"/>

  b) <newtag id="foo"/>

Can someone please help me identify the preferred solution according to the
W3?

Thanks,

--Murray Macdonald
Received on Tuesday, 18 September 2001 11:24:58 GMT

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