parent
4fca2cccca
commit
8400d9f03a
1 changed files with 7 additions and 0 deletions
|
@ -166,6 +166,13 @@ describe('L.Util', function () {
|
||||||
assert.equal(L.Util.escapeHTML('<span onload="alert(oups)">'), '<span></span>')
|
assert.equal(L.Util.escapeHTML('<span onload="alert(oups)">'), '<span></span>')
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('should not escape geo: links', function () {
|
||||||
|
assert.equal(
|
||||||
|
L.Util.escapeHTML('<a href="geo:1,2"></a>'),
|
||||||
|
'<a href="geo:1,2"></a>'
|
||||||
|
)
|
||||||
|
})
|
||||||
|
|
||||||
it('should not fail with int value', function () {
|
it('should not fail with int value', function () {
|
||||||
assert.equal(L.Util.escapeHTML(25), '25')
|
assert.equal(L.Util.escapeHTML(25), '25')
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue