Skip to content

Commit

Permalink
Merge pull request #801 from lars-sh/master
Browse files Browse the repository at this point in the history
Fixed basic XHTML problems.
  • Loading branch information
mourner committed Jul 13, 2012
2 parents ad4b8a2 + 39ba367 commit c89f363
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/control/Control.Attribution.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ L.Control.Attribution = L.Control.extend({
prefixAndAttribs.push(attribs.join(', '));
}

this._container.innerHTML = prefixAndAttribs.join(' — ');
this._container.innerHTML = prefixAndAttribs.join(' — ');
},

_onLayerAdd: function (e) {
Expand Down
2 changes: 1 addition & 1 deletion src/layer/Popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ L.Popup = L.Class.extend({
if (this.options.closeButton) {
closeButton = this._closeButton = L.DomUtil.create('a', prefix + '-close-button', container);
closeButton.href = '#close';
closeButton.innerHTML = '×';
closeButton.innerHTML = '×';

L.DomEvent.on(closeButton, 'click', this._onCloseButtonClick, this);
}
Expand Down
14 changes: 9 additions & 5 deletions src/layer/vector/Path.VML.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@
*/

L.Browser.vml = (function () {
var div = document.createElement('div');
div.innerHTML = '<v:shape adj="1"/>';
try {
var div = document.createElement('div');
div.innerHTML = '<v:shape adj="1"/>';

var shape = div.firstChild;
shape.style.behavior = 'url(#default#VML)';
var shape = div.firstChild;
shape.style.behavior = 'url(#default#VML)';

return shape && (typeof shape.adj === 'object');
return shape && (typeof shape.adj === 'object');
} catch (e) {
return false;
}
}());

L.Path = L.Browser.svg || !L.Browser.vml ? L.Path : L.Path.extend({
Expand Down

0 comments on commit c89f363

Please sign in to comment.