]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
tooltip.js: ignore a LGTM error (#35147)
authorXhmikosR <xhmikosr@gmail.com>
Sun, 10 Oct 2021 11:49:41 +0000 (14:49 +0300)
committerGitHub <noreply@github.com>
Sun, 10 Oct 2021 11:49:41 +0000 (14:49 +0300)
The code on this line is either sanitized or the user chose to not sanitize it.

js/src/tooltip.js

index 423a192c0923ae7f1a5427836da7b632245cce4c..7a8986548faa52f771a866bbfb2e3da79377e6ab 100644 (file)
@@ -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
     }