Merge branch 'master' of ssh://git.indexdata.com/home/git/pub/pazpar2
authorAdam Dickmeiss <adam@indexdata.dk>
Wed, 7 Apr 2010 09:04:56 +0000 (11:04 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Wed, 7 Apr 2010 09:04:56 +0000 (11:04 +0200)
js/pz2.js

index bf6a9b8..bad26ac 100644 (file)
--- 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;
     }