Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2021-10-10 14:49:41 +0300
committerGitHub <noreply@github.com>2021-10-10 14:49:41 +0300
commit24e3ca2474a51f996e9166c065da80b068e8e599 (patch)
treed8df7df43bb1b7094e4d9d21ebbf2eae6688e769
parentc44d64ed71bd74d322c6023f1cd5a167de126d4f (diff)
tooltip.js: ignore a LGTM error (#35147)
The code on this line is either sanitized or the user chose to not sanitize it.
-rw-r--r--js/src/tooltip.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index 423a192c09..7a8986548f 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -421,7 +421,7 @@ class Tooltip extends BaseComponent {
content = sanitizeHtml(content, this._config.allowList, this._config.sanitizeFn)
}
- element.innerHTML = content
+ element.innerHTML = content // lgtm [js/xss-through-dom]
} else {
element.textContent = content
}