projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7065546
)
Roo/htmleditor/TidySerializer.js
author
Alan
<alan@roojs.com>
Thu, 6 Jan 2022 09:11:57 +0000
(17:11 +0800)
committer
Alan
<alan@roojs.com>
Thu, 6 Jan 2022 09:11:57 +0000
(17:11 +0800)
Roo/htmleditor/TidySerializer.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/TidySerializer.js
b/Roo/htmleditor/TidySerializer.js
index
0f40fe7
..
96d2150
100644
(file)
--- a/
Roo/htmleditor/TidySerializer.js
+++ b/
Roo/htmleditor/TidySerializer.js
@@
-68,6
+68,8
@@
Roo.apply(Roo.htmleditor.TidySerializer.prototype, {
}
};
writer.reset();
}
};
writer.reset();
+ 1 != node.type || this.inner ? handlers[11](node) : walk(node);
+ return writer.getContent();
function walk(node) {
var name, isEmpty, attrs, attrName, attrValue, sortedAttrs, i, l, elementRule, handler = handlers[node.type];
function walk(node) {
var name, isEmpty, attrs, attrName, attrValue, sortedAttrs, i, l, elementRule, handler = handlers[node.type];
@@
-120,8
+122,7
@@
Roo.apply(Roo.htmleditor.TidySerializer.prototype, {
}
}
// Serialize element and treat all non elements as fragments
}
}
// Serialize element and treat all non elements as fragments
- 1 != node.type || settings.inner ? handlers[11](node) : walk(node);
- return writer.getContent();
+
};
};
};
};