Merge pull request #8524 from NeoRaider/xhtml-fixes

Fix compatiblity with XHTML content type
This commit is contained in:
Frédéric Junod
2018-08-22 13:13:22 +02:00
committed by GitHub
16 changed files with 24 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ describe('ol.control.Control', function() {
map = new Map({
target: document.createElement('div')
});
const element = document.createElement('DIV');
const element = document.createElement('div');
control = new Control({element: element});
control.setMap(map);
});

View File

@@ -14,7 +14,7 @@ import {createElementNS, parse} from '../../../../src/ol/xml.js';
const readGeometry = function(format, text, opt_options) {
const doc = parse(text);
// we need an intermediate node for testing purposes
const node = document.createElement('PRE');
const node = document.createElement('pre');
node.appendChild(doc.documentElement);
return format.readGeometryFromNode(node, opt_options);
};

View File

@@ -15,7 +15,7 @@ describe('ol.MapBrowserEventHandler', function() {
beforeEach(function() {
clock = sinon.useFakeTimers();
target = document.createElement('DIV');
target = document.createElement('div');
handler = new MapBrowserEventHandler(new Map({
target: target
}));