It's happening onMouseUp. Trying to copy the headline triggers that (after selecting the text), or simply clicking on it.
It seems the div has the same functionality as the X button. I assumed it was a mistake, but it's been so long now I wonder if it's intentional.