W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1998


From: (wrong string) <wdonne@ibm.net>
Date: Tue, 21 Apr 1998 11:44:56 +0200
Message-ID: <353C6A98.70FB@ibm.net>
To: DOM <www-dom@w3.org>

The value of an Attribute is now not exposed anymore by an attribute of
Node in the Attribute interface. This is because the value is composed
by the
children of the Attribute (for XML anyway). There are two consequences:

- The value argument of the Document.createAttribute operation should be
- The attribute Attribute.specified should be replaced by the
operation. One must not be able to set the attribute because it is
set when a value is added to an Attribute object. If there is no value,
default value is looked up in the Attribute declaration.

The explanation of Attribute.specified says:
  "If this attribute was explicitly given a value in the original
   this will be true; otherwise, it will be false."

The fact that the attribute is read-write and that the term "original
was used leads me to think the intention is that if there is no value
for an
attribute, the default value should be put in it if any. Otherwise the
value is added and the specified attribute set to true. However, this
only reflect the condition at the time the document was loaded. That is
arbitrary because a change of physical representation doesn't imply a
change of
a document. In my opinion the DOM permanently is the original document.
So, the
specified attribute should reflect the current state. Because I think
default value should not be stored in the Attribute (at least not
the specified attribute does not have to be read-write.

With kind regards,
Werner Donn
Leuvenselaan 172
B-3300 Tienen
tel: (+32) 16 810203
fax: (+32) 16 820826
E-mail: wdonne@ibm.net
Received on Tuesday, 21 April 1998 05:43:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:03 UTC