Changeset 1186
- Timestamp:
- 08/10/06 01:59:17 (2 years ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Feature/WFS.js (modified) (1 diff)
- trunk/openlayers/lib/OpenLayers/Util.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Feature/WFS.js
r997 r1186 50 50 // must return an Object with 'id' and 'lonlat' values set 51 51 var point = xmlNode.getElementsByTagName("Point"); 52 var text = point[0].textContent;52 var text = OpenLayers.Util.getXmlNodeValue(point[0]); 53 53 var floats = text.split(","); 54 54 trunk/openlayers/lib/OpenLayers/Util.js
r1181 r1186 1034 1034 return ""; 1035 1035 } 1036 }; 1037 1038 /** 1039 * @param {XMLNode} node 1040 * 1041 * @returns The text value of the given node, without breaking in firefox or IE 1042 * @type String 1043 */ 1044 OpenLayers.Util.getXmlNodeValue = function(node) { 1045 var val = null; 1046 Try.these( 1047 function() { 1048 val = node.text; 1049 }, 1050 function() { 1051 val = node.textContent; 1052 }); 1053 return val; 1036 1054 }; 1037 1055
