[DXML-12] Do the right thing if cdata content contains the cdata end-tag "]]>" Created: 21/Nov/12 Updated: 08/Jan/13 Resolved: 08/Jan/13
|Reporter:||Jeff Weiss||Assignee:||Ryan Senior|
(xml/emit-str (xml/cdata "fooo]]>bar"))
"<?xml version=\"1.0\" encoding=\"UTF-8\"?><![CDATA[fooo]]>bar]]>"
This is invalid xml. The contract for cdata states that it cannot contain the end tag "]]>", so if the cdata function gets passed content that contains it, it should do the right thing, which is probably this:
(split the content so it is emitted as multiple cdata blocks, none of which contain the entire end-tag "]]>").
This is not a purely academic bug report - I actually hit this problem in prxml and fixed it on my fork.
|Comment by Ryan Senior [ 08/Jan/13 10:07 PM ]|
Fixed, released in 0.0.7