зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1057127 - "[a11y] Improve accessibility of output area for screen readers". r=bgrinstead
This commit is contained in:
Родитель
6293339534
Коммит
5632cfb131
|
@ -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">
|
||||
|
|
Загрузка…
Ссылка в новой задаче