Comment 1 for bug 168405

Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

Originator: NO

Technically CDATA is just escaping things inside of a text node. It is
just an optional sub-part, and multiple CDATA sections could go into a
single text node, yet still be functionally equivalent as far as the
programs using it go:

<script type="text/ecmascript" id="script2259">
function setColour(evt)
{
var colour= evt.target.getAttribute(<![CDATA["]]>fill<![CDATA["]]>);
}
</script>

or

<script type="text/ecmascript" id="script2259">
function setColour(evt)
{
var colour= evt.target.getAttribute(<![CDATA["]]>fill");
}
</script>

(and splitting that last sentence to a separate bug would help)