BUG FIX: wrap text nodes between and after children elements