pvdspek/jquery.autoellipsis — pull request #10 by jpalermo (2012-06-04 09:47:56+00:00)
Title: If you have a empty element followed by a text node, it throws an exception trying to append the ellipsis to the empty node.

I had a
followed by text. The text got pruned away, and then the call to removeLastEmptyElements removed the empty text node. But then it tried to concatenate the ellipsis onto the
.

I simply put the removeLastEmptyElements in a loop to clear all the empty elements at the end.