* Fixed nasty bug in the new logic for wrapping orphan text which caused elements to be lost.
* ul's should be hoisted, however nothing should be hoisted beyond an li.