@@ -162,7 +162,7 @@ <h4 class="name">
162
162
163
163
< div class ="tag-source ">
164
164
< 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 >
166
166
</ div >
167
167
168
168
</ div >
@@ -512,7 +512,11 @@ <h4 class="name">
512
512
< td class ="description last ">
513
513
514
514
< 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 >
516
520
</ tr >
517
521
518
522
@@ -1008,7 +1012,7 @@ <h4 class="name">
1008
1012
1009
1013
< div class ="tag-source ">
1010
1014
< 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 >
1012
1016
</ div >
1013
1017
1014
1018
</ div >
@@ -1099,7 +1103,7 @@ <h4 class="name">
1099
1103
1100
1104
< div class ="tag-source ">
1101
1105
< 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 >
1103
1107
</ div >
1104
1108
1105
1109
</ div >
@@ -2070,7 +2074,7 @@ <h4 class="name">
2070
2074
2071
2075
< div class ="tag-source ">
2072
2076
< 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 >
2074
2078
</ div >
2075
2079
2076
2080
</ div >
@@ -2198,7 +2202,7 @@ <h4 class="name">
2198
2202
2199
2203
< div class ="tag-source ">
2200
2204
< 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 >
2202
2206
</ div >
2203
2207
2204
2208
</ div >
0 commit comments