1
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-09-28 06:20:15 +02:00

fixes #17097: Go back to using jQuery's text and html methods since innerText is nonstandard and not present in Firefox

Closes #17272 by merging a tweaked version of it.

[skip validator]
This commit is contained in:
Jelle Versele
2015-08-24 14:45:49 +02:00
committed by Chris Rebert
parent 6d42a23039
commit 54c4eb950b
2 changed files with 7 additions and 7 deletions

View File

@@ -116,12 +116,12 @@ const Popover = (($) => {
let tip = this.getTipElement()
let title = this.getTitle()
let content = this._getContent()
let titleElement = $(tip).find(Selector.TITLE)[0]
let $titleElement = $(tip).find(Selector.TITLE)
if (titleElement) {
titleElement[
this.config.html ? 'innerHTML' : 'innerText'
] = title
if ($titleElement) {
$titleElement[
this.config.html ? 'html' : 'text'
](title)
}
// we use append for html objects to maintain js events