W3C home > Mailing lists > Public > www-html@w3.org > July 2008

Re: name="" deprecated in XHTML

From: David Dorward <david@dorward.me.uk>
Date: Wed, 2 Jul 2008 17:30:53 +0100
Message-Id: <3C4AACCC-6A57-444B-8966-EFBB536A9394@dorward.me.uk>
To: w3-html <www-html@w3.org>

On 1 Jul 2008, at 16:57, Sebastian Mendel wrote:
> in opposite to class, which could be changed to change styling,  
> naming is something to rely on what does not change, see above

As mentioned, you can change the name of an element to change the  

> (in an abstract view ... objects in software are always an  
> abstraction of objects in real world, and classes and names are two  
> different things on real world objects, and this has a reason,  
> sometimes you need to specify a group of objects by its name and  
> sometimes by its class)

In object orientated programming, if you want to get multiple objects,  
then you would store them in an array (or some other kind of object).  
I don't think I've ever encountered a way of accessing multiple  
objects from a single name.

> naming and classifying objects are two different approaches for me

I don't see how.

There are two cases that I can see.

(1) You get an object. This can be done by its id.

(2) You get a group of objects that have something in common. The  
class describes what they have in common.

Your name approach seems (to me) to be purely a matter of perception,  
it doesn't add any capabilities.

David Dorward
Received on Wednesday, 2 July 2008 16:31:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:20 UTC