[evolution/wip/mcrha/webkit-jsc-api] EvoEditor.UpdateStyleSheet: Let innerText being used consistently
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/mcrha/webkit-jsc-api] EvoEditor.UpdateStyleSheet: Let innerText being used consistently
- Date: Thu, 16 Apr 2020 09:51:45 +0000 (UTC)
commit 8ad022f9592676385cbf616be0d19ff6252ea64e
Author: Milan Crha <mcrha redhat com>
Date: Thu Apr 16 11:53:25 2020 +0200
EvoEditor.UpdateStyleSheet: Let innerText being used consistently
This depends on https://bugs.webkit.org/show_bug.cgi?id=210595
If not fixed, then may use innerHTML as an interim workaround.
data/webkit/e-editor.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/data/webkit/e-editor.js b/data/webkit/e-editor.js
index f98d3e7eee..d590a337cc 100644
--- a/data/webkit/e-editor.js
+++ b/data/webkit/e-editor.js
@@ -2648,10 +2648,10 @@ EvoEditor.UpdateStyleSheet = function(id, css)
for (ii = 0; ii < styles.length; ii++) {
if (styles[ii].id == id) {
- res = styles[ii].innerHTML;
+ res = styles[ii].innerText;
if (css)
- styles[ii].innerHTML = css;
+ styles[ii].innerText = css;
else
document.head.removeChild(styles[ii]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]