Don't use innerHTML
This commit is contained in:
parent
f463e2e238
commit
53220af68e
@ -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));
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user