};
Roo.apply(Roo.htmleditor.TidySerializer.prototype, {
+
+ /**
+ * @param {boolean} inner do the inner of the node.
+ */
+ inner : false,
+
/**
* Serializes the specified node into a string.
*
// = settings.validate;
var writer = this.writer;
+ var walk = this.walk;
this.handlers = {
// #text
3: function(node) {
}
};
writer.reset();
- 1 != node.type || this.inner ? handlers[11](node) : walk(node);
- return writer.getContent();
+ 1 != node.nodeType || this.inner ? handlers[11](node) : walk(node);
+ return writer.getContent();
+ },
- function walk(node) {
+ walk: function(node) {
var name, isEmpty, attrs, attrName, attrValue, sortedAttrs, i, l, elementRule, handler = handlers[node.type];
if (handler) {
handler(node);