5 var extension = {wlxmlClass: {comment: {
11 .filter(function(node) {
13 return node && node.nodeType === Node.TEXT_NODE;
15 .forEach(function(node) {
16 text = text + node.getText();
20 setText: function(text) {
21 var contents = this.contents();
22 if(contents.length === 1 && contents[0].nodeType === Node.TEXT_NODE) {
23 contents[0].setText(text);
25 contents.forEach(function(node) {
28 this.append({text: text});