Don't use innerHTML
This commit is contained in:
parent
f463e2e238
commit
53220af68e
@ -164,7 +164,7 @@ class QueryParser extends TextScanner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renderParserSelect() {
|
renderParserSelect() {
|
||||||
this.queryParserSelect.innerHTML = '';
|
this.queryParserSelect.textContent = '';
|
||||||
if (this.parseResults.length > 1) {
|
if (this.parseResults.length > 1) {
|
||||||
const select = this.queryParserGenerator.createParserSelect(this.parseResults, this.selectedParser);
|
const select = this.queryParserGenerator.createParserSelect(this.parseResults, this.selectedParser);
|
||||||
select.addEventListener('change', this.onParserChange.bind(this));
|
select.addEventListener('change', this.onParserChange.bind(this));
|
||||||
|
@ -366,7 +366,7 @@ class TextSourceElement {
|
|||||||
setEndOffset(length) {
|
setEndOffset(length) {
|
||||||
switch (this.element.nodeName.toUpperCase()) {
|
switch (this.element.nodeName.toUpperCase()) {
|
||||||
case 'BUTTON':
|
case 'BUTTON':
|
||||||
this.content = this.element.innerHTML;
|
this.content = this.element.textContent;
|
||||||
break;
|
break;
|
||||||
case 'IMG':
|
case 'IMG':
|
||||||
this.content = this.element.getAttribute('alt');
|
this.content = this.element.getAttribute('alt');
|
||||||
|
Loading…
Reference in New Issue
Block a user