metajack / strophejs

The Strophe.js repository has moved to https://github.com/strophe/strophejs

Home Page:http://strophe.im/strophejs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CDATA not sent

icallarlo opened this issue · comments

cdata is not sent even if the nodeType is set numerically to what should match strophe's internal definition of a cdata node.

-A

The fix we implemented is as follows:

after function xmlTextNode

     xmlCdataNode: function (text)
{
    return Strophe.xmlGenerator().createCDATASection(text);
},

after t: function

    cdata: function (text)
{
    var child = Strophe.xmlCdataNode(text);
    this.node.appendChild(child);
    return this;
 }