RE: NAME or ID ?

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 UTC