[
Lists Home |
Date Index |
Thread Index
]
- From: Mike Champion <mcc@arbortext.com>
- To: Patrice Bonhomme <Patrice.Bonhomme@loria.fr>, xml-dev@ic.ac.uk
- Date: 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é1">
>
>And i want to restore the original attribute value (sé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
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@ic.ac.uk)
|