From e210328dba054830169af3bb5026a835cf5344de Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Wed, 2 Mar 2016 13:17:30 +0100 Subject: [PATCH] Remove ol.xml.getAttributeNS workaround for IE --- src/ol/xml.js | 31 +------------------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/src/ol/xml.js b/src/ol/xml.js index 5f1f3991e4..6807cfe5ab 100644 --- a/src/ol/xml.js +++ b/src/ol/xml.js @@ -149,41 +149,12 @@ ol.xml.isNode = goog.userAgent.IE ? ol.xml.isNodeIE_ : ol.xml.isNode_; * @param {?string} namespaceURI Namespace URI. * @param {string} name Attribute name. * @return {string} Value - * @private */ -ol.xml.getAttributeNS_ = function(node, namespaceURI, name) { +ol.xml.getAttributeNS = function(node, namespaceURI, name) { return node.getAttributeNS(namespaceURI, name) || ''; }; -/** - * @param {Node} node Node. - * @param {?string} namespaceURI Namespace URI. - * @param {string} name Attribute name. - * @return {string} Value - * @private - */ -ol.xml.getAttributeNSActiveX_ = function(node, namespaceURI, name) { - var attributeValue = ''; - var attributeNode = ol.xml.getAttributeNodeNS(node, namespaceURI, name); - if (attributeNode !== undefined) { - attributeValue = attributeNode.nodeValue; - } - return attributeValue; -}; - - -/** - * @param {Node} node Node. - * @param {?string} namespaceURI Namespace URI. - * @param {string} name Attribute name. - * @return {string} Value - */ -ol.xml.getAttributeNS = - (document.implementation && document.implementation.createDocument) ? - ol.xml.getAttributeNS_ : ol.xml.getAttributeNSActiveX_; - - /** * @param {Node} node Node. * @param {?string} namespaceURI Namespace URI.