DOM CDATA vs Normalization

Lauren Wood lauren at sqwest.bc.ca
Wed Mar 24 17:52:01 GMT 1999


Bill la Forge wrote:
> 
> Normalization of an element combines various text objects into a single
> text object. Does it then merge text and CDATA objects to a single object?
> And what about ignorable whitespace?

Normalization merges only adjoining Text nodes, regardless of their
content. It does not merge Text nodes with CDATA Section nodes,
comments or PIs.

You will notice in the latest draft of the DOM Level 2, at
http://www.w3.org/TR/WD-DOM-Level-2/,
that one of the items on the list of issues to be addressed in Level
2 is
Conversion of a CDATASection node to a TEXT node.

This could include merging adjacent Text and CDATA Section nodes.

Might I suggest this discussion take place on the public DOM mailing
list? www-dom at w3.org, to subscribe send email to
www-dom-request at w3.org with the subject line "subscribe".

regards,

Lauren

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/ and on CD-ROM/ISBN 981-02-3594-1
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