Correcting typo in the OSM format and adding support for null namespaceURI in IE. r=crschmidt (closes #1318)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@5965 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Tim Schaub
2008-02-01 21:44:43 +00:00
parent 4fc4c6ce4b
commit 2259db2225
3 changed files with 17 additions and 12 deletions

View File

@@ -145,7 +145,11 @@ OpenLayers.Format.XML = OpenLayers.Class(OpenLayers.Format, {
createElementNS: function(uri, name) {
var element;
if(this.xmldom) {
element = this.xmldom.createNode(1, name, uri);
if(typeof uri == "string") {
element = this.xmldom.createNode(1, name, uri);
} else {
element = this.xmldom.createNode(1, name, "");
}
} else {
element = document.createElementNS(uri, name);
}