diff --git a/lib/OpenLayers/Format/WMSDescribeLayer/v1_1.js b/lib/OpenLayers/Format/WMSDescribeLayer/v1_1.js index cd174435a7..f43a159fd1 100644 --- a/lib/OpenLayers/Format/WMSDescribeLayer/v1_1.js +++ b/lib/OpenLayers/Format/WMSDescribeLayer/v1_1.js @@ -55,6 +55,7 @@ OpenLayers.Format.WMSDescribeLayer.v1_1 = OpenLayers.Class( var root = data.documentElement; var children = root.childNodes; var describelayer = []; + var childNode, nodeName; for(var i=0; i 0) { typeName = query[0].getAttribute('typeName'); if (!typeName) { diff --git a/lib/OpenLayers/Format/WMSGetFeatureInfo.js b/lib/OpenLayers/Format/WMSGetFeatureInfo.js index 4e1da1ce2a..3b2774a8b3 100644 --- a/lib/OpenLayers/Format/WMSGetFeatureInfo.js +++ b/lib/OpenLayers/Format/WMSGetFeatureInfo.js @@ -229,7 +229,7 @@ OpenLayers.Format.WMSGetFeatureInfo = OpenLayers.Class(OpenLayers.Format.XML, { var attributes = {}; if (node.nodeType == 1) { var children = node.childNodes; - n = children.length; + var n = children.length; for (var i = 0; i < n; ++i) { var child = children[i]; if (child.nodeType == 1) {