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-07-30 01:23:00 +0300
committerGitHub <noreply@github.com>2021-07-30 01:23:00 +0300
commit6d707f4801750f1454351d6afe93a80ce4516d1a (patch)
tree168b43e7e45613dc4e6031500538626514ecec89 /js/src/tooltip.js
parent2bf32ad18017f85380eb6daed3a314b88e1e851a (diff)
Enable a few eslint-config-xo rules (#34620)
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
Diffstat (limited to 'js/src/tooltip.js')
-rw-r--r--js/src/tooltip.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/src/tooltip.js b/js/src/tooltip.js
index e09a53b5ce..0adde623fb 100644
--- a/js/src/tooltip.js
+++ b/js/src/tooltip.js
@@ -257,7 +257,7 @@ class Tooltip extends BaseComponent {
Data.set(tip, this.constructor.DATA_KEY, this)
if (!this._element.ownerDocument.documentElement.contains(this.tip)) {
- container.appendChild(tip)
+ container.append(tip)
EventHandler.trigger(this._element, this.constructor.Event.INSERTED)
}
@@ -402,7 +402,7 @@ class Tooltip extends BaseComponent {
if (this._config.html) {
if (content.parentNode !== element) {
element.innerHTML = ''
- element.appendChild(content)
+ element.append(content)
}
} else {
element.textContent = content.textContent