I am doing some manipulation of TextNodes in javascript, and I (unfortunately) need to support IE6. Node.normalize() is crashing, and I need to work around this. My first inclination is to just re-implement it using other DOM methods. How would I implement this?
I am doing some manipulation of TextNodes in javascript, and I (unfortunately) need to
Share
The following version is shorter and more efficient than others posted here. The improvements are:
node.childNodesandnode.childNodes.lengthappendData()methodThe code: