html :: HTMLTag :: attach_infobox
# Attach the infobox to the node by using BootStrap popover
fun attach_infobox(infobox: HInfoBox)
do
classes.add("popupable")
attrs["title"] = infobox.title
var href = infobox.href
if href != null then
attrs["data-title"] = """<a href="{{{href}}}">{{{infobox.title}}}</a>"""
end
attrs["data-content"] = infobox.content.write_to_string
attrs["data-toggle"] = "popover"
end
src/htmlight.nit:360,2--371,4