mirror of
https://github.com/wavetermdev/xterm.js.git
synced 2026-08-05 13:43:48 -07:00
Update AccessibilityManager.ts to use textContent rather than innerText
The innerText property requires layout and therefore is not very efficient. For more information, see http://www.kellegous.com/j/2013/02/27/innertext-vs-textcontent/.
This commit is contained in:
@@ -185,7 +185,7 @@ export class AccessibilityManager extends Disposable {
|
||||
const element = this._rowElements[i];
|
||||
if (element) {
|
||||
if (lineData.length === 0) {
|
||||
element.innerText = '\u00a0';
|
||||
element.textContent = '\u00a0';
|
||||
this._rowColumns.set(element, [0, 1]);
|
||||
} else {
|
||||
element.textContent = lineData;
|
||||
|
||||
Reference in New Issue
Block a user