From 3264d9a6ea59a26cc356d8ff5fc0c04a4b8c809e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Dub=C3=A9?= Date: Tue, 2 Feb 2016 13:36:24 -0500 Subject: [PATCH] Use node.setAttribute to set namespaceURI --- src/ol/format/wmsgetfeatureinfoformat.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ol/format/wmsgetfeatureinfoformat.js b/src/ol/format/wmsgetfeatureinfoformat.js index 0157b197fe..7805035bdf 100644 --- a/src/ol/format/wmsgetfeatureinfoformat.js +++ b/src/ol/format/wmsgetfeatureinfoformat.js @@ -73,7 +73,7 @@ ol.format.WMSGetFeatureInfo.layerIdentifier_ = '_layer'; */ ol.format.WMSGetFeatureInfo.prototype.readFeatures_ = function(node, objectStack) { - node.namespaceURI = this.featureNS_; + node.setAttribute('namespaceURI', this.featureNS_); goog.asserts.assert(node.nodeType == goog.dom.NodeType.ELEMENT, 'node.nodeType should be ELEMENT'); var localName = ol.xml.getLocalName(node); @@ -114,7 +114,7 @@ ol.format.WMSGetFeatureInfo.prototype.readFeatures_ = function(node, objectStack this.gmlFormat_.readFeatureElement, this.gmlFormat_); var parsersNS = ol.xml.makeStructureNS( [context['featureNS'], null], parsers); - layer.namespaceURI = this.featureNS_; + layer.setAttribute('namespaceURI', this.featureNS_); var layerFeatures = ol.xml.pushParseAndPop( [], parsersNS, layer, objectStack, this.gmlFormat_); if (layerFeatures) {