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

@@ -290,7 +290,7 @@ OpenLayers.Format.OSM = OpenLayers.Class(OpenLayers.Format.XML, {
this.osm_id = 1;
this.created_nodes = {};
var root_node = document.createElementNS(null, "osm");
var root_node = this.createElementNS(null, "osm");
root_node.setAttribute("version", "0.5");
root_node.setAttribute("generator", "OpenLayers "+ OpenLayers.VERSION_NUMBER);