W3C home > Mailing lists > Public > www-dom@w3.org > January to March 2002

Re: Attr nodes

From: Mark Hellegers <M.H.Hellegers@stud.tue.nl>
Date: Thu, 14 Feb 2002 21:06:03 +0100
Message-ID: <20020214210603.PM-0yn5b5oh@mark>
To: <www-dom@w3.org>
> Don't confuse IDL attributes with implementation fields. An IDL
>attribute is just a value you can read or set. Where it's stored is a
>completely separate issue, and is up to the implementation.
>
>The DOM API says that the Attr node's value is always equal to the
>concatenation of the values of its Text descendents, and that when you
>set this node's value that's taken as a request to replace those
>descendents with a single Text node containing the new value. I don't
>think we actually said whether it will be a new Text node, or whether one
>of the existing Text children of the Attr (if any) will be reused by
>having the new value assigned to it. I believe either is acceptable.

I'm sorry, but I can't find where it is stated that the Attr node's value
is constructed that way.
Now I read it again, I can see that the value is not primarily the value
of nodeValue, but it is not made really clear what it is.

Thanks,

	Mark Hellegers
Received on Thursday, 14 February 2002 14:58:52 GMT

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