bootstrap/docs/components
Gleb Mazovetskiy c7d8e7a077 Accept elements as the tooltip / popover content
When a DOM node is passed to an HTML tooltip, the `title` node is only
moved if it is not already in the tooltip. Otherwise, `empty()` is used
instead of `detach()` before appending the `title` to avoid memory
leaks. If a DOM node is passed to a plain text tooltip, its text is
copied via jQuery `.text()`.

Replaces `.detach()` with `.empty()`, as `.detach()` is almost never
useful but instead leaks memory. The difference between `empty` and
`detach` is that the latter keeps all the attached jQuery events/data.
However, since we do not return the previous children, the user would
have to keep these themselves, thus they can `detach()` if necessary.

This is a port of https://github.com/twbs/bootstrap/pull/14552 to v4.
2015-08-31 01:06:13 +01:00
..
alerts.md Massive cleanup 2015-08-14 22:45:55 -07:00
breadcrumb.md Breadcrumb docs: Add MDN CSS doc links 2015-08-20 21:57:49 -07:00
button-dropdown.md Docs: various fixes 2015-08-21 02:15:17 +02:00
button-group.md Remove dropped btn-xs and btn-group-xs from docs 2015-08-22 21:16:05 +03:00
buttons.md Add btn-info to buttons examples 2015-08-22 13:52:27 -04:00
card.md Docs: fix typo from 9c52e03 2015-08-23 04:56:09 +02:00
carousel.md Massive cleanup 2015-08-14 22:45:55 -07:00
collapse.md Less to Sass typos. 2015-08-27 08:14:39 +03:00
dropdowns.md Fix validation errors. 2015-08-25 15:38:20 +03:00
forms.md Use `https` when possible. 2015-08-29 18:50:20 +03:00
input-group.md Docs: Update all dropdowns to new HTML structure 2015-08-21 00:18:55 +02:00
jumbotron.md Massive cleanup 2015-08-14 22:45:55 -07:00
label.md Massive cleanup 2015-08-14 22:45:55 -07:00
list-group.md copy 2015-08-17 00:42:41 -07:00
modal.md Use `https` when possible. 2015-08-29 18:50:20 +03:00
navbar.md navbar positioning 2015-08-18 01:18:21 -07:00
navs.md navs.md: Fade effect: add missing backtick 2015-08-20 19:12:37 -07:00
pagination.md Pagination docs: Fix "pager alternative" link 2015-08-20 21:59:39 -07:00
popovers.md Accept elements as the tooltip / popover content 2015-08-31 01:06:13 +01:00
progress.md <progress> docs: Add MDN link 2015-08-20 22:02:54 -07:00
scrollspy.md Use `https` when possible. 2015-08-29 18:50:20 +03:00
tooltips.md Accept elements as the tooltip / popover content 2015-08-31 01:06:13 +01:00
utilities.md Rephrase/copyedit IE [hidden] compatibility docs 2015-08-23 00:44:54 -07:00