parser is able to fix orphan text nodes