mirror of
https://github.com/tenrok/bootstrap.git
synced 2026-05-30 15:24:08 +03:00
Use textContent instead of innerText. (#30462)
It's supported by all of our supported browsers.
This commit is contained in:
+2
-2
@@ -421,7 +421,7 @@ class Tooltip {
|
||||
element.appendChild(content)
|
||||
}
|
||||
} else {
|
||||
element.innerText = content.textContent
|
||||
element.textContent = content.textContent
|
||||
}
|
||||
|
||||
return
|
||||
@@ -434,7 +434,7 @@ class Tooltip {
|
||||
|
||||
element.innerHTML = content
|
||||
} else {
|
||||
element.innerText = content
|
||||
element.textContent = content
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user