Index: gc_lang/fr/webext/content_scripts/panel_gc.js ================================================================== --- gc_lang/fr/webext/content_scripts/panel_gc.js +++ gc_lang/fr/webext/content_scripts/panel_gc.js @@ -131,10 +131,12 @@ if (xNode) { this.oNodeControl.setNode(xNode); if (!(xNode.tagName == "TEXTAREA" || xNode.tagName == "INPUT")) { this.addMessage("Note : cette zone de texte n’est pas un champ de formulaire “textarea” mais un node HTML éditable. Une telle zone de texte est susceptible de contenir des éléments non textuels qui seront effacés lors de la correction."); } + } else { + this.oNodeControl.clear(); } } recheckAll () { this.oTooltip.hide(); @@ -932,15 +934,9 @@ this.eraseContent(); this.dParagraph.forEach((val, key) => { this.xNode.appendChild(document.createTextNode(val.normalize("NFC"))); this.xNode.appendChild(document.createElement("br")); }); - /* - this.dParagraph.forEach(function (val, key) { - sText += val + "
"; - }); - this.xNode.innerHTML = sText.normalize("NFC"); - */ } } } }