Merge pull request #6849 from oterral/fix_6848

Create URL object only when we can
This commit is contained in:
Andreas Hocevar
2017-05-24 14:44:09 +02:00
committed by GitHub

View File

@@ -488,7 +488,7 @@ ol.format.KML.readFlatCoordinates_ = function(node) {
*/
ol.format.KML.readURI_ = function(node) {
var s = ol.xml.getAllTextContent(node, false).trim();
if (node.baseURI) {
if (node.baseURI && node.baseURI !== 'about:blank') {
var url = new URL(s, node.baseURI);
return url.href;
} else {