Avoid HTML entities like and ©
Use numerical entities instead for XHTML compatiblity.
This commit is contained in:
@@ -29,9 +29,9 @@ const COORDINATE_FORMAT = 'coordinateFormat';
|
|||||||
* callback.
|
* callback.
|
||||||
* @property {Element|string} [target] Specify a target if you want the
|
* @property {Element|string} [target] Specify a target if you want the
|
||||||
* control to be rendered outside of the map's viewport.
|
* 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
|
* 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
|
* retain the last rendered position, set this option to something falsey (like an empty
|
||||||
* string `''`).
|
* string `''`).
|
||||||
*/
|
*/
|
||||||
@@ -79,7 +79,7 @@ class MousePosition extends Control {
|
|||||||
* @private
|
* @private
|
||||||
* @type {string}
|
* @type {string}
|
||||||
*/
|
*/
|
||||||
this.undefinedHTML_ = 'undefinedHTML' in options ? options.undefinedHTML : ' ';
|
this.undefinedHTML_ = 'undefinedHTML' in options ? options.undefinedHTML : ' ';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import XYZ from '../source/XYZ.js';
|
|||||||
* @type {string}
|
* @type {string}
|
||||||
* @api
|
* @api
|
||||||
*/
|
*/
|
||||||
export const ATTRIBUTION = '© ' +
|
export const ATTRIBUTION = '© ' +
|
||||||
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
|
'<a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> ' +
|
||||||
'contributors.';
|
'contributors.';
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user