From fba4528c9a7baff786059012644275681f4fd92f Mon Sep 17 00:00:00 2001 From: crschmidt Date: Fri, 8 Feb 2008 00:56:52 +0000 Subject: [PATCH] Add further improvements to WFS writing code from sbenthall, to write out things in IE. (Closes #1278) (again) git-svn-id: http://svn.openlayers.org/trunk/openlayers@6054 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Format/WFS.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/OpenLayers/Format/WFS.js b/lib/OpenLayers/Format/WFS.js index 1a74fe648d..3079a6fcef 100644 --- a/lib/OpenLayers/Format/WFS.js +++ b/lib/OpenLayers/Format/WFS.js @@ -76,7 +76,8 @@ OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, { break; } } - return transaction; + + return OpenLayers.Format.XML.prototype.write.apply(this,[transaction]); }, /** @@ -92,7 +93,7 @@ OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, { var featureContainer = this.createElementNS(this.featureNS, "feature:" + this.featureName); featureContainer.appendChild(geomContainer); for(var attr in feature.attributes) { - var attrText = document.createTextNode(feature.attributes[attr]); + var attrText = this.createTextNode(feature.attributes[attr]); var nodename = attr; if (attr.search(":") != -1) { nodename = attr.split(":")[1]; @@ -132,7 +133,7 @@ OpenLayers.Format.WFS = OpenLayers.Class(OpenLayers.Format.GML, { var propertyNode = this.createElementNS(this.wfsns, 'wfs:Property'); var nameNode = this.createElementNS(this.wfsns, 'wfs:Name'); - var txtNode = document.createTextNode(this.geometryName); + var txtNode = this.createTextNode(this.geometryName); nameNode.appendChild(txtNode); propertyNode.appendChild(nameNode);