Don't use innerHTML

This commit is contained in:
toasted-nutbread 2020-02-23 11:49:52 -05:00
parent f463e2e238
commit 53220af68e
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ class QueryParser extends TextScanner {
}
renderParserSelect() {
this.queryParserSelect.innerHTML = '';
this.queryParserSelect.textContent = '';
if (this.parseResults.length > 1) {
const select = this.queryParserGenerator.createParserSelect(this.parseResults, this.selectedParser);
select.addEventListener('change', this.onParserChange.bind(this));

View File

@ -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');