The innerXML should work on all type of nodes, instead of just TEXT and ELEMENT. Fix CDATA node innerXML not proper.