The createElementNSPlus method should append non-null values to the newly created node. Thanks for the quick review. r=crschmidt (closes #1883)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@8545 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-12-23 20:58:28 +00:00
parent 4a4e7b7e07
commit 40fb641a52
2 changed files with 17 additions and 1 deletions

View File

@@ -493,7 +493,7 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, {
if(options.attributes) {
this.setAttributes(node, options.attributes);
}
if(options.value) {
if(options.value != null) {
node.appendChild(this.createTextNode(options.value));
}
return node;