From: senator Date: Fri, 3 Dec 2010 19:49:44 +0000 (+0000) Subject: BibTemplate: textContent()'s problem had already been fixed another way in X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6caa0b9332d0cc738b87b0b87ce98428b4b98369;p=contrib%2FConifer.git BibTemplate: textContent()'s problem had already been fixed another way in 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 --- diff --git a/Open-ILS/web/js/dojo/openils/BibTemplate.js b/Open-ILS/web/js/dojo/openils/BibTemplate.js index a72ec16ebc..dff54ee731 100644 --- a/Open-ILS/web/js/dojo/openils/BibTemplate.js +++ b/Open-ILS/web/js/dojo/openils/BibTemplate.js @@ -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() {