Use #text for text nodes content
authorJakub Skoczen <jakub@indexdata.dk>
Fri, 2 Apr 2010 08:36:54 +0000 (10:36 +0200)
committerJakub Skoczen <jakub@indexdata.dk>
Fri, 2 Apr 2010 08:38:38 +0000 (10:38 +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;
     }