Open
Description
This is ugly. (...and doesn't indent well, either!)
The infinite chain of function calls seems wildly unnecessary. The element could just as easily be built using a single string of (much easier to read) markup.
We should also separate the construction of the fragment from the event binding.