EnhancedChangesList: add screen reader support to live changes
Expose EnhancedChangesList content to assistive technology as it's updated. Change-Id: I5b9744075bf7ab03388ed7f827a171b6c253de8d
This commit is contained in:
parent
69608f77cd
commit
0da37edd0b
2 changed files with 2 additions and 2 deletions
|
|
@ -89,7 +89,7 @@ class EnhancedChangesList extends ChangesList {
|
|||
'jquery.makeCollapsible',
|
||||
] );
|
||||
|
||||
return '<div class="mw-changeslist">';
|
||||
return '<div class="mw-changeslist" aria-live="polite">';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ class EnhancedChangesListTest extends MediaWikiLangTestCase {
|
|||
$enhancedChangesList = $this->newEnhancedChangesList();
|
||||
$html = $enhancedChangesList->beginRecentChangesList();
|
||||
|
||||
$this->assertEquals( '<div class="mw-changeslist">', $html );
|
||||
$this->assertEquals( '<div class="mw-changeslist" aria-live="polite">', $html );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue