We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2270908 commit be18498Copy full SHA for be18498
lib/xmlrpc_lib.js
@@ -2492,10 +2492,11 @@ function getSingleChild(node, expectedType)
2492
function getChildText(node)
2493
{
2494
var ret = '';
2495
+ var child;
2496
for(var i = 0; i < node.childNodes.length; i++)
2497
2498
child = node.childNodes.item(i);
- if (child.nodeType == 3) // ignore comments (8), character data (3), ...
2499
+ if (child.nodeType == 3 || child.nodeType == 4) // handle text and cdata, ignore comments (8), ...
2500
2501
ret += String(child.nodeValue)
2502
}
0 commit comments