Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulnerabilities 2 #1173

Merged
merged 11 commits into from
Mar 6, 2024
4 changes: 2 additions & 2 deletions static/js/theme-map/Renderer/ElementRenderTarget.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ class ElementRenderTarget extends RenderTarget {

/**
* async render(data) => DOMNode
* Calls templateFunction(data) and sets value to element.innerHTML, then returns element
* Calls templateFunction(data) and sets value to element.textContent, then returns element
*/
async render(data) {
if (this._element) {
this._element.innerHTML = this._templateFunction(data);
this._element.textContent = this._templateFunction(data);
}

return this._element;
Expand Down
Loading