twitter/bootstrap — pull request #2794 by davewasmer (2012-03-26 00:02:15+00:00)
Title: Added target option for rich HTML content to popovers

The popover's plugin now checks for a `data-target` attribute on the element, or a `target` option passed in. If one is found, it uses that as a selector. The contents of the popover are copied from the contents produced by the selector.

It uses `.html()`, not `.clone()`, so no extra baggage comes along with it - not sure if that would be the expected functionality (that's my expectation, but I don't know if everyone else agrees).

I updated the documentation to reflect this additional functionality, including a second example button for the popover demonstration to illustrate the HTML content capability.