Remove text nodes in-between block elements

Bug fix for http://jsbin.com/EyuKase/1/edit?js,output.