}
if(
- node.nodeName == 'SPAN' &&
- !node.hasAttributes() &&
- node.childNodes.length == 1 &&
- node.firstChild.nodeName == "#text"
+ node.nodeName == 'SPAN'
+// !node.hasAttributes() &&
+// node.childNodes.length == 1 &&
+// node.firstChild.nodeName == "#text"
) {
+ console.log(node.hasAttributes());
+ console.log(node.childNodes.length);
+ console.log(node.firstChild.nodeName);
+
console.log('run!!!!!');
var textNode = node.firstChild;
console.log(textNode);