rem: element.appendChild(document.createTextNode("\n"), element) 
add: element.appendChild(element.ownerDocument.createTextNode("\n"), element) 
context: function renderWhitespaceInTextContent(element) {    // Remove non-visible newlines in text nodes    if (element.nodeType == Node.TEXT_NODE)    {        element.data = element.data.replace(/\n|\r|\t/g, " ");        return;    }    // Don't modify PRE elements    if (element.tagName == "PRE")    {        return;    }    // Handle inline element that force newlines    if (tagIs(element, ["BR", "HR"]))    {        // Replace this element with a newline text element        element.parentNode.replaceChild(document.createTextNode("\n"), element)    }    for (var i = 0; i < element.childNodes.length; i++)    {        var child = element.childNodes.item(i)        renderWhitespaceInTextContent(child);    }    // Handle block elements that introduce newlines// -- From HTML spec://<!ENTITY % block//     "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT |//      BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS">    if (tagIs(element, ["P", "DIV"]))    {        element.appendChild(document.createTextNode("\n"), element)    }}
meta: 3428	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3428/5a8720d27b78f43bc0804dedef6bc7cdabbcce34/htmlutils.js/buggy/code/javascript/core/scripts/htmlutils.js