Skip to content

Commit 8b372cc

Browse files
committed
Website updates
1 parent 3af25e3 commit 8b372cc

7 files changed

+33
-13
lines changed

dist/en/main/apidoc/module-ol_control_Attribution-Attribution.html

+10-6
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ <h4 class="name">
162162

163163
<div class="tag-source">
164164
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js">control/Attribution.js</a>,
165-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L49">line 49</a>
165+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L53">line 53</a>
166166
</div>
167167

168168
</div>
@@ -512,7 +512,11 @@ <h4 class="name">
512512
<td class="description last">
513513

514514
<p>Optional attribution(s) that will always be
515-
displayed regardless of the layers rendered</p></td>
515+
displayed regardless of the layers rendered.
516+
<strong>Caution:</strong> Attributions are rendered dynamically using <code>innerHTML</code>, which can lead to potential
517+
<a href="https://en.wikipedia.org/wiki/Cross-site_scripting"><strong>XSS (Cross-Site Scripting)</strong></a> vulnerabilities.
518+
Use this feature only for trusted content
519+
or ensure that the content is properly sanitized before inserting it.</p></td>
516520
</tr>
517521

518522

@@ -1008,7 +1012,7 @@ <h4 class="name">
10081012

10091013
<div class="tag-source">
10101014
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js">control/Attribution.js</a>,
1011-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L332">line 332</a>
1015+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L336">line 336</a>
10121016
</div>
10131017

10141018
</div>
@@ -1099,7 +1103,7 @@ <h4 class="name">
10991103

11001104
<div class="tag-source">
11011105
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js">control/Attribution.js</a>,
1102-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L291">line 291</a>
1106+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L295">line 295</a>
11031107
</div>
11041108

11051109
</div>
@@ -2070,7 +2074,7 @@ <h4 class="name">
20702074

20712075
<div class="tag-source">
20722076
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js">control/Attribution.js</a>,
2073-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L318">line 318</a>
2077+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L322">line 322</a>
20742078
</div>
20752079

20762080
</div>
@@ -2198,7 +2202,7 @@ <h4 class="name">
21982202

21992203
<div class="tag-source">
22002204
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js">control/Attribution.js</a>,
2201-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L300">line 300</a>
2205+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/control/Attribution.js#L304">line 304</a>
22022206
</div>
22032207

22042208
</div>

dist/en/main/apidoc/module-ol_control_Attribution.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,11 @@ <h5 class="subsection-title">Properties:</h5>
491491

492492
<td class="description last">
493493
<p>Optional attribution(s) that will always be
494-
displayed regardless of the layers rendered</p>
494+
displayed regardless of the layers rendered.
495+
<strong>Caution:</strong> Attributions are rendered dynamically using <code>innerHTML</code>, which can lead to potential
496+
<a href="https://en.wikipedia.org/wiki/Cross-site_scripting"><strong>XSS (Cross-Site Scripting)</strong></a> vulnerabilities.
497+
Use this feature only for trusted content
498+
or ensure that the content is properly sanitized before inserting it.</p>
495499

496500
</td>
497501
</tr>

dist/en/main/examples/common.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/control/Attribution.d.ts

+10-2
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,11 @@ export type Options = {
5555
render?: ((arg0: import("../MapEvent.js").default) => void) | undefined;
5656
/**
5757
* Optional attribution(s) that will always be
58-
* displayed regardless of the layers rendered
58+
* displayed regardless of the layers rendered.
59+
* **Caution:** Attributions are rendered dynamically using `innerHTML`, which can lead to potential
60+
* [**XSS (Cross-Site Scripting)**](https://en.wikipedia.org/wiki/Cross-site_scripting) vulnerabilities.
61+
* Use this feature only for trusted content
62+
* or ensure that the content is properly sanitized before inserting it.
5963
*/
6064
attributions?: string | Array<string> | undefined;
6165
};
@@ -85,7 +89,11 @@ export type Options = {
8589
* the control should be re-rendered. This is called in a `requestAnimationFrame`
8690
* callback.
8791
* @property {string|Array<string>|undefined} [attributions] Optional attribution(s) that will always be
88-
* displayed regardless of the layers rendered
92+
* displayed regardless of the layers rendered.
93+
* **Caution:** Attributions are rendered dynamically using `innerHTML`, which can lead to potential
94+
* [**XSS (Cross-Site Scripting)**](https://en.wikipedia.org/wiki/Cross-site_scripting) vulnerabilities.
95+
* Use this feature only for trusted content
96+
* or ensure that the content is properly sanitized before inserting it.
8997
*/
9098
/**
9199
* @classdesc

dist/en/main/ol/control/Attribution.d.ts.map

+1-1
Original file line numberDiff line numberDiff line change

dist/en/main/ol/control/Attribution.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ import Control from './Control.js';
3434
* the control should be re-rendered. This is called in a `requestAnimationFrame`
3535
* callback.
3636
* @property {string|Array<string>|undefined} [attributions] Optional attribution(s) that will always be
37-
* displayed regardless of the layers rendered
37+
* displayed regardless of the layers rendered.
38+
* **Caution:** Attributions are rendered dynamically using `innerHTML`, which can lead to potential
39+
* [**XSS (Cross-Site Scripting)**](https://en.wikipedia.org/wiki/Cross-site_scripting) vulnerabilities.
40+
* Use this feature only for trusted content
41+
* or ensure that the content is properly sanitized before inserting it.
3842
*/
3943

4044
/**

dist/en/main/ol/dist/ol.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)