Roo/htmleditor/TidySerializer.js
authorAlan <alan@roojs.com>
Thu, 6 Jan 2022 09:12:16 +0000 (17:12 +0800)
committerAlan <alan@roojs.com>
Thu, 6 Jan 2022 09:12:16 +0000 (17:12 +0800)
Roo/htmleditor/TidySerializer.js

index 96d2150..d05ba33 100644 (file)
@@ -68,7 +68,7 @@ Roo.apply(Roo.htmleditor.TidySerializer.prototype, {
             }
         };
         writer.reset();
-        1 != node.type || this.inner ? handlers[11](node) : walk(node);
+        1 != node.nodeType || this.inner ? handlers[11](node) : walk(node);
     return writer.getContent();
 
     function walk(node) {