diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-23 11:49:52 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-23 11:49:52 -0500 |
commit | 53220af68eabdda27b35224056f3bd589e8c4785 (patch) | |
tree | 4e0addbefe23729bcf867ac7cec2f99a5aff839e /ext/fg | |
parent | f463e2e238b1616d58bf254ecb53de8b0dae6573 (diff) |
Don't use innerHTML
Diffstat (limited to 'ext/fg')
-rw-r--r-- | ext/fg/js/source.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/source.js b/ext/fg/js/source.js index fa785ec4..6dc482bd 100644 --- a/ext/fg/js/source.js +++ b/ext/fg/js/source.js @@ -366,7 +366,7 @@ class TextSourceElement { setEndOffset(length) { switch (this.element.nodeName.toUpperCase()) { case 'BUTTON': - this.content = this.element.innerHTML; + this.content = this.element.textContent; break; case 'IMG': this.content = this.element.getAttribute('alt'); |