Re: att="sé1"

Mike Champion (mcc@arbortext.com)
Mon, 1 Jun 1998 09:47:54 -0400


At 12:38 PM 5/30/98 -0400, Patrice Bonhomme wrote:
>
><hi/>
>
>An Attribute value, within the DOM interface, is a String. But i could have
>this :
> <S id="s&eacute;1">
>
>And i want to restore the original attribute value (s&eacute;1) when i
save my
>file.
>
>Is it possible for the Attribute class to extend either the ContainerNode
>class or the NodeList class ?

This is admittedly not at all clear in the April 15 draft of the spec, but
the children of an Attribute are the values (the String methods are
conveniences for the HTML world, in which attribute values can't contain
entity references). So, an attribute could have a single Text node as a
value (in the simple case), or a sub-tree of text nodes and whatever entity
references expand to.

This is being re-worked and clarified for the next draft.

Mike Champion