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

Re: Should Attr nodes store their values in a child text node?

From: Michael A. Puls II <shadow2531@gmail.com>
Date: Thu, 10 Jan 2008 20:06:58 -0500
Message-ID: <6b9c91b20801101706i2dfa475eg3db4ebe2e5a73c00@mail.gmail.com>
To: "Kartikaya Gupta" <kagupta@rim.com>
Cc: www-dom@w3.org

On 1/10/08, Kartikaya Gupta <kagupta@rim.com> wrote:
> The value of an Attr
> node can be composed of both text and entity references, for example.
> This means the Attr node would have multiple children. In this case, the
> .value would combine all the children and return a "normalized" value.
> In such a case, .firstChild.nodeValue would not be the same as .value.

Could you show a working example of this where you can either add text
nodes and entityReference nodes to an attribute node or give markup
where this would happen for an attribute during processing?

Received on Friday, 11 January 2008 01:07:04 UTC

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