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
This commit is contained in:
crschmidt
2008-02-08 00:56:52 +00:00
parent a56b84e922
commit fba4528c9a

View File

@@ -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);