BibTemplate: textContent()'s problem had already been fixed another way in
authorsenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Dec 2010 19:49:44 +0000 (19:49 +0000)
committersenator <senator@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 3 Dec 2010 19:49:44 +0000 (19:49 +0000)
rel_2_0, so let's stick with that.

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18913 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/js/dojo/openils/BibTemplate.js

index a72ec16..dff54ee 100644 (file)
@@ -59,11 +59,12 @@ if(!dojo._hasResource["openils.BibTemplate"]) {
         },
 
         textContent : function (node) {
+            var content = '';
             if (node) {
-                return node.innerText || node.textContent ||
-                    dojox.xml.parser.textContent(node) || "";
+                if(window.ActiveXObject) content = node.text;
+                else content = node.textContent;
             }
-            return '';
+            return content;
         },
 
         render : function() {