domparser.js
function flushData() {
        if (currentCharacters) {
            currentElement.appendChild(
                    doc.createTextNode(currentCharacters));
            currentCharacters = '';
        }
        else if (currentCdata) {
            currentElement.appendChild(
                    doc.createCDATASection(currentCdata));
            currentCdata = '';
        }
    }
function flushData() {
        if (currentCharacters) {
            currentElement.appendChild(
                    doc.createTextNode(currentCharacters));
            currentCharacters = '';
        }
        else if (currentCdata) {
            currentElement.appendChild(
                    doc.createCDATASection(currentCdata));
            currentCdata = '';
        }
    }
function flushData ( ) { if ( currentCharacters ) { currentElement . appendChild ( doc . createTextNode ( currentCharacters ) ) ; currentCharacters = '' ; } else if ( currentCdata ) { currentElement . appendChild ( doc . createCDATASection ( currentCdata ) ) ; currentCdata = '' ; } }
Add text node or CDATA section before starting or ending an element
Add text node or CDATA section before starting or ending an element