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 (from parent 1:
cf7a375
)
Solved: IE throwing exception if text contents of the node was an empty string.
author
Jakub Skoczen
<jakub@indexdata.dk>
Mon, 10 Sep 2007 13:18:53 +0000
(13:18 +0000)
committer
Jakub Skoczen
<jakub@indexdata.dk>
Mon, 10 Sep 2007 13:18:53 +0000
(13:18 +0000)
js/pz2.js
patch
|
blob
|
history
diff --git
a/js/pz2.js
b/js/pz2.js
index
70be91d
..
5850c59
100644
(file)
--- a/
js/pz2.js
+++ b/
js/pz2.js
@@
-1,5
+1,5
@@
/*
/*
-** $Id: pz2.js,v 1.53 2007-09-03 20:13:22 adam Exp $
+** $Id: pz2.js,v 1.54 2007-09-10 13:18:53 jakub Exp $
** pz2.js - pazpar2's javascript client library.
*/
** pz2.js - pazpar2's javascript client library.
*/
@@
-804,7
+804,7
@@
Element_getTextContent = function (DOM_Element)
{
if ( typeof DOM_Element.textContent != 'undefined' ) {
return DOM_Element.textContent;
{
if ( typeof DOM_Element.textContent != 'undefined' ) {
return DOM_Element.textContent;
- } else if (DOM_Element.text ) {
+ } else if (typeof DOM_Element.text != 'undefined') {
return DOM_Element.text;
} else {
throw new Error("Cannot get text content of the node, no such method.");
return DOM_Element.text;
} else {
throw new Error("Cannot get text content of the node, no such method.");