DOM CDATA vs Normalization

Lauren Wood lauren at
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,
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, to subscribe send email to
www-dom-request at with the subject line "subscribe".



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list