Avoid HTML entities like   and ©

Use numerical entities instead for XHTML compatiblity.
This commit is contained in:
Matthias Schiffer
2018-08-18 13:06:27 +02:00
parent 321166849b
commit 94c6afd65d
2 changed files with 4 additions and 4 deletions

View File

@@ -29,9 +29,9 @@ const COORDINATE_FORMAT = 'coordinateFormat';
* callback.
* @property {Element|string} [target] Specify a target if you want the
* control to be rendered outside of the map's viewport.
* @property {string} [undefinedHTML=' '] Markup to show when coordinates are not
* @property {string} [undefinedHTML=' '] Markup to show when coordinates are not
* available (e.g. when the pointer leaves the map viewport). By default, the last position
* will be replaced with `' '` when the pointer leaves the viewport. To
* will be replaced with `' '` (` `) when the pointer leaves the viewport. To
* retain the last rendered position, set this option to something falsey (like an empty
* string `''`).
*/
@@ -79,7 +79,7 @@ class MousePosition extends Control {
* @private
* @type {string}
*/
this.undefinedHTML_ = 'undefinedHTML' in options ? options.undefinedHTML : ' ';
this.undefinedHTML_ = 'undefinedHTML' in options ? options.undefinedHTML : ' ';
/**
* @private

View File

@@ -12,7 +12,7 @@ import XYZ from '../source/XYZ.js';
* @type {string}
* @api
*/
export const ATTRIBUTION = '© ' +
export const ATTRIBUTION = '© ' +
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
'contributors.';