Skip to content

Commit 1495e71

Browse files
author
Alex Morris
authored
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/.
1 parent a7a941c commit 1495e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/browser/AccessibilityManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ export class AccessibilityManager extends Disposable {
185185
const element = this._rowElements[i];
186186
if (element) {
187187
if (lineData.length === 0) {
188-
element.innerText = '\u00a0';
188+
element.textContent = '\u00a0';
189189
this._rowColumns.set(element, [0, 1]);
190190
} else {
191191
element.textContent = lineData;

0 commit comments

Comments
 (0)