From: Alan Date: Thu, 6 Jan 2022 09:18:39 +0000 (+0800) Subject: Roo/htmleditor/TidySerializer.js X-Git-Url: http://git.roojs.org/?p=roojs1;a=commitdiff_plain;h=4269777ed01763d65305d5e090f5ea254a66b54e Roo/htmleditor/TidySerializer.js --- diff --git a/Roo/htmleditor/TidySerializer.js b/Roo/htmleditor/TidySerializer.js index 36ad4fa582..60bce124e8 100644 --- a/Roo/htmleditor/TidySerializer.js +++ b/Roo/htmleditor/TidySerializer.js @@ -27,7 +27,7 @@ Roo.apply(Roo.htmleditor.TidySerializer.prototype, { */ inner : false, - writer : false; + writer : false, /** * Serializes the specified node into a string. @@ -137,17 +137,15 @@ Roo.apply(Roo.htmleditor.TidySerializer.prototype, { writer.end(name); return; } - - do { - walk(node); - } while (node = node.next); - } - writer.end(name); + while (node) { + walk(node); + node = node.nextNode; } - } + writer.end(name); + + } // Serialize element and treat all non elements as fragments -}; -}; +});