diff --git a/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest/suggest.js b/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest/suggest.js index e1bccdc608b8..d674c529849d 100644 --- a/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest/suggest.js +++ b/xwiki-platform-core/xwiki-platform-web/xwiki-platform-web-war/src/main/webapp/resources/uicomponents/suggest/suggest.js @@ -494,8 +494,14 @@ var XWiki = (function(XWiki){ if (!$(this.options.parentContainer).down('.suggestItems')) { // If the suggestion top container is not in the DOM already, we create it and inject it - - var div = new Element("div", { 'class': "suggestItems "+ this.options.className }); + + // We populate the suggestion container with information that was not on the page. + // This meaningful change in the DOM must be announced + // so that assistive technology users can notice it without trouble. + var div = new Element("div", { + 'class': "suggestItems "+ this.options.className, + 'role': 'alert' + }); // Get position of target textfield var pos = $(this.options.parentContainer).tagName.toLowerCase() == 'body' ? this.fld.cumulativeOffset() : this.fld.positionedOffset();