att="sé1"

Mike Champion mcc at arbortext.com
Mon Jun 1 15:50:25 BST 1998


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


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)




More information about the Xml-dev mailing list