From: Jakub Skoczen Date: Fri, 2 Apr 2010 08:36:54 +0000 (+0200) Subject: Use #text for text nodes content X-Git-Tag: v1.4.0~47^2 X-Git-Url: http://git.indexdata.com/?a=commitdiff_plain;h=9cbe97e92bf5bafe179385692888e09426299f2d;hp=e230ff7e920fc1b9a997e5edc64b8946e41a0d33;p=pazpar2-moved-to-github.git Use #text for text nodes content --- diff --git a/js/pz2.js b/js/pz2.js index bf6a9b8..bad26ac 100644 --- a/js/pz2.js +++ b/js/pz2.js @@ -967,7 +967,7 @@ Element_parseChildNodes = function (node) // if no nested elements, get text content if (node.hasChildNodes() && !hasChildElems) { if (node.attributes.length) - parsed['textContent'] = node.firstChild.nodeValue; + parsed['#text'] = node.firstChild.nodeValue; else parsed = node.firstChild.nodeValue; }