121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
| oGrammalecteTextEditor.loadText(sText);
}
* _getParsableNodes (xRootNode) {
// recursive function
try {
for (let xNode of xRootNode.childNodes) {
if (xNode.className !== "moz-cite-prefix" && xNode.className !== "moz-forward-container"
&& ! (bThunderbird && xNode.tagName == "BLOCKQUOTE" && xNode.cite)
&& ( xNode.nodeType == Node.TEXT_NODE || (xNode.nodeType == Node.ELEMENT_NODE && !xNode.textContent.startsWith(">")) )
&& xNode.textContent !== "") {
// console.log("tag:", xNode.tagName, "class:", xNode.className, " nodeType:", xNode.nodeType, " type:", xNode.type);
if (xNode.tagName === undefined) {
if (!this.bCheckSignature && xNode.textContent.startsWith("-- ")) {
break;
|
|
| 121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
| oGrammalecteTextEditor.loadText(sText);
}
* _getParsableNodes (xRootNode) {
// recursive function
try {
for (let xNode of xRootNode.childNodes) {
if (xNode.className !== "moz-cite-prefix" && xNode.className !== "moz-forward-container" && xNode.className !== "moz-signature"
&& ! (bThunderbird && xNode.tagName == "BLOCKQUOTE" && xNode.cite)
&& ( xNode.nodeType == Node.TEXT_NODE || (xNode.nodeType == Node.ELEMENT_NODE && !xNode.textContent.startsWith(">")) )
&& xNode.textContent !== "") {
// console.log("tag:", xNode.tagName, "class:", xNode.className, " nodeType:", xNode.nodeType, " type:", xNode.type);
if (xNode.tagName === undefined) {
if (!this.bCheckSignature && xNode.textContent.startsWith("-- ")) {
break;
|