Bug fixed: element children lost if content starts with text node