diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-23 11:58:17 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-23 11:58:17 -0500 |
commit | 5a5c18371ca6df5473f9d5ef9a391acde6c2e168 (patch) | |
tree | 5c73ece15c7f89cea2c0f55b1117bd148be7e654 /ext/fg/js | |
parent | 53220af68eabdda27b35224056f3bd589e8c4785 (diff) |
Use textContent instead of innerText
Diffstat (limited to 'ext/fg/js')
-rw-r--r-- | ext/fg/js/document.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/fg/js/document.js b/ext/fg/js/document.js index ea9ac965..1a3e8791 100644 --- a/ext/fg/js/document.js +++ b/ext/fg/js/document.js @@ -50,7 +50,7 @@ function docImposterCreate(element, isTextarea) { const imposter = document.createElement('div'); const imposterStyle = imposter.style; - imposter.innerText = element.value; + imposter.textContent = element.value; for (let i = 0, ii = elementStyle.length; i < ii; ++i) { const property = elementStyle[i]; |