From abfbe30b2b70aa80be02f4f55e8d58e6ed74c6b2 Mon Sep 17 00:00:00 2001 From: crschmidt Date: Tue, 22 Aug 2006 11:42:25 +0000 Subject: [PATCH] FireFox apparently doesn't return any text with node.text, but it doesn't throw an exception either. This change makes the WFS example work in FF -- I'll have to check the effect it has on IE. git-svn-id: http://svn.openlayers.org/branches/openlayers/2.0@1328 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Util.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/OpenLayers/Util.js b/lib/OpenLayers/Util.js index 8af02a43fb..3357b6e762 100644 --- a/lib/OpenLayers/Util.js +++ b/lib/OpenLayers/Util.js @@ -355,6 +355,8 @@ OpenLayers.Util.getXmlNodeValue = function(node) { Try.these( function() { val = node.text; + if (!val) + val = node.textContent; }, function() { val = node.textContent;