Don't attach tooltips to document.body
... this post perfectly encapsulates why I hate web development.  A painful and easy to miss bug when trying to reimplement a GUI feature that's been available in every decent GUI framework for over two decades.