rem: for (var i = 0; i < breaks.length; i++) { 
add:  for (var i = breaks.length-1; i >= 0; i--) { 
context:     this._cleanupBr = function(ownerdoc, root) {        var breaks = root.getElementsByTagName('br');        for (var i = 0; i < breaks.length; i++) {            var node = breaks[i];            var parentNode = node.parentNode;            if (parentNode.tagName=='body') {                var p = ownerdoc.createElement('p');                var prev = node.previousSibling;                if (prev && prev.nodeType==3) {                    p.appendChild(prev);                }                parentNode.insertBefore(p,node);                parentNode.removeChild(node);            } else if (!node.nextSibling && (/p|div/i.test(parentNode.nodeName) && !(node.previousSibling&&node.previousSibling.nodeName=='br'))) {                parentNode.removeChild(node);            }        }    };
meta: 2380	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/2380/37c69c07a0669d4d457c8fcc354a69495bc411b9/kupucontentfilters.js/buggy/kupu/common/kupucontentfilters.js