File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ export class AccessibilityManager extends Disposable {
5757
5858 this . _rowContainer = document . createElement ( 'div' ) ;
5959 this . _rowContainer . classList . add ( 'xterm-accessibility-tree' ) ;
60- this . _rowContainer . setAttribute ( 'role' , 'document' ) ;
6160 this . _rowElements = [ ] ;
6261 for ( let i = 0 ; i < this . _terminal . rows ; i ++ ) {
6362 this . _rowElements [ i ] = this . _createAccessibilityTreeNode ( ) ;
Original file line number Diff line number Diff line change @@ -383,6 +383,7 @@ export class Terminal extends CoreTerminal implements ITerminal {
383383 this . element . classList . add ( 'terminal' ) ;
384384 this . element . classList . add ( 'xterm' ) ;
385385 this . element . setAttribute ( 'tabindex' , '0' ) ;
386+ this . element . setAttribute ( 'role' , 'document' ) ;
386387 parent . appendChild ( this . element ) ;
387388
388389 // Performance: Use a document fragment to build the terminal
You can’t perform that action at this time.
0 commit comments