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:
Abbe98 2020-03-02 17:55:21 +01:00 committed by DannyS712
parent 69608f77cd
commit 0da37edd0b
2 changed files with 2 additions and 2 deletions

View file

@ -89,7 +89,7 @@ class EnhancedChangesList extends ChangesList {
'jquery.makeCollapsible',
] );
return '<div class="mw-changeslist">';
return '<div class="mw-changeslist" aria-live="polite">';
}
/**

View file

@ -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 );
}
/**