Details
Description
setText() in OMElement adds the text node to the given element twice. The first time is when CreateText() adds it, and the second when setText() explicitly adds it. This causes the text node to become it's own sibling, preventing proper detachment from the parent.