projects
/
pazpar2-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e230ff7
)
Use #text for text nodes content
author
Jakub Skoczen
<jakub@indexdata.dk>
Fri, 2 Apr 2010 08:36:54 +0000
(10:36 +0200)
committer
Jakub Skoczen
<jakub@indexdata.dk>
Fri, 2 Apr 2010 08:38:38 +0000
(10:38 +0200)
js/pz2.js
patch
|
blob
|
history
diff --git
a/js/pz2.js
b/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;
}