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
This commit is contained in:
crschmidt
2006-08-22 11:42:25 +00:00
parent a98ee2580d
commit abfbe30b2b

View File

@@ -355,6 +355,8 @@ OpenLayers.Util.getXmlNodeValue = function(node) {
Try.these(
function() {
val = node.text;
if (!val)
val = node.textContent;
},
function() {
val = node.textContent;