Accessibility: Give header email labels (From/To/CC) ARIA label properties in message reading window/pane. - bug 449560 r=dmose
--HG-- extra : rebase_source : ab3d5e8513d2ce460d1735a228fd9505b5eb6c4b
This commit is contained in:
Родитель
659a40a73c
Коммит
c9a8d786c2
|
@ -308,6 +308,12 @@
|
|||
aEmailNode.setAttribute("fullAddress", aAddress.fullAddress);
|
||||
aEmailNode.setAttribute("displayName", aAddress.displayName);
|
||||
|
||||
// Add aria-label with header field type and header field content
|
||||
// for better accessibility
|
||||
var ariaLabel = this.getAttribute("label") + ": " +
|
||||
aEmailNode.getAttribute("label");
|
||||
aEmailNode.setAttribute("aria-label", ariaLabel);
|
||||
|
||||
try
|
||||
{
|
||||
if ("AddExtraAddressProcessing" in top)
|
||||
|
@ -489,7 +495,7 @@
|
|||
<binding id="mail-emailaddress">
|
||||
<content>
|
||||
<xul:description anonid="emailValue" class="emailDisplayButton"
|
||||
xbl:inherits="hascard"
|
||||
xbl:inherits="hascard,aria-label"
|
||||
context="emailAddressPopup" popup="emailAddressPopup"
|
||||
flex="1">
|
||||
<xul:label class="emaillabel" anonid="emaillabel"
|
||||
|
|
Загрузка…
Ссылка в новой задаче