Bug 1057127 - "[a11y] Improve accessibility of output area for screen readers". r=bgrinstead

This commit is contained in:
James Teh [:Jamie] 2014-08-25 19:52:00 +02:00
Родитель 6293339534
Коммит 5632cfb131
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -488,6 +488,11 @@ Messages.BaseMessage.prototype = {
let container = doc.createElementNS(XHTML_NS, "div");
container.id = "console-msg-" + gSequenceId();
container.className = "message";
if (this.category == "input") {
// Assistive technology tools shouldn't echo input to the user,
// as the user knows what they've just typed.
container.setAttribute("aria-live", "off");
}
container.category = this._categoryCompat;
container.severity = this._severityCompat;
container.setAttribute("category", this._categoryNameCompat);

Просмотреть файл

@ -174,7 +174,8 @@ function goUpdateConsoleCommands() {
</toolbar>
<hbox id="output-wrapper" flex="1" context="output-contextmenu" tooltip="aHTMLTooltip">
<div xmlns="http://www.w3.org/1999/xhtml" id="output-container" tabindex="1" />
<div xmlns="http://www.w3.org/1999/xhtml" id="output-container"
tabindex="0" role="document" aria-live="polite" />
</hbox>
<notificationbox id="webconsole-notificationbox">
<hbox class="jsterm-input-container" style="direction:ltr">