diff --git a/RELEASE-NOTES-1.35 b/RELEASE-NOTES-1.35 index 6401d71dddf..6891d7cedf3 100644 --- a/RELEASE-NOTES-1.35 +++ b/RELEASE-NOTES-1.35 @@ -67,6 +67,8 @@ For notes on 1.34.x and older releases, see HISTORY. * … === New user-facing features in 1.35 === +* (T204618) Whitelisted the aria-hidden HTML attribute for all elements in + wikitext. * (T13456) Special:EditPage, Special:PageHistory, Special:PageInfo, and Special:Purge have been created as shortcuts for each action. Special:EditPage/Foo redirects to title=foo&action=edit, with PageHistory, diff --git a/includes/parser/Sanitizer.php b/includes/parser/Sanitizer.php index 21cb5387069..fbcd316c1ba 100644 --- a/includes/parser/Sanitizer.php +++ b/includes/parser/Sanitizer.php @@ -1755,6 +1755,7 @@ class Sanitizer { # WAI-ARIA 'aria-describedby', 'aria-flowto', + 'aria-hidden', 'aria-label', 'aria-labelledby', 'aria-owns', diff --git a/tests/phpunit/includes/parser/SanitizerTest.php b/tests/phpunit/includes/parser/SanitizerTest.php index 47ded5a922c..cff3d6d4347 100644 --- a/tests/phpunit/includes/parser/SanitizerTest.php +++ b/tests/phpunit/includes/parser/SanitizerTest.php @@ -140,6 +140,10 @@ class SanitizerTest extends MediaWikiTestCase { [ 'id' => 'foo bar', 'itemprop' => 'foo', 'content' => 'bar' ], [ 'itemprop' => 'foo', 'content' => 'bar' ], ], + [ 'div', + [ 'role' => 'presentation', 'aria-hidden' => 'true' ], + [ 'role' => 'presentation', 'aria-hidden' => 'true' ], + ], ]; }