W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Attributes contain redundant properties?

From: Razvan Costea-Barlutiu <cbrazvan@baltan.bsd.uchicago.edu>
Date: Thu, 30 Aug 2001 13:52:49 -0600
Message-Id: <5.0.0.25.2.20010830134457.00a412f0@baltan.bsd.uchicago.edu>
To: www-dom@w3.org
Can anybody tell me why there are DOMStrings defined in the Attr interface 
for name and value of an attribute? Since Attr is inherited from node, 
which successfully holds nodeName and nodeValue fields, why are those 
fields again present in the Attr?

Or, do they have a different meaning from those in Node?
And, on setting the value of an attribute, the DOM Core specifies that a 
new Text node is created for that value... Then what does "value" field 
holds if a Text node already contains the attribute's value?

Forgive me if these questions have already been asked...

Thank you.

__________________________________________________________________
Razvan Costea-Barlutiu
Department of Radiology,
The University of Chicago
5841 South Maryland Avenue
Chicago, Illinois 60637
Phone: (773)834-5106
E-Mail: cbrazvan@baltan.bsd.uchicago.edu
Received on Thursday, 30 August 2001 14:51:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:49 GMT