@@ -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 >
0 commit comments