As appropriate, replace aria-label attributes with traditional HTML
title attributes.
For ref, from the LP entry:
http://www.w3.org/TR/2013/WD-aria-in-html-
20131003/#first-rule-of-aria-use
"If you can use a native HTML element [HTML5] or attribute with the
semantics and behaviour you require already built in, instead of
re-purposing an element and adding an ARIA role, state or property to
make it accessible, then do so."
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Ben Shum <bshum@biblio.org>
<tr>
<td>
<select name="action" id="acct_holds_actions"
- aria-label="[% l('Select your action for the selected holds') %]"
+ title="[% l('Select your action for the selected holds') %]"
title="[% l('Select your action for the selected holds') %]">
<option id='myopac_holds_actions_none' value=''>
-- [% l("Actions for selected holds") %] --
[% CASE "copy_location" %]
<select id="adv_copy_location_selector"
- aria-label="[% l('Select Shelving Location') %]"
+ title="[% l('Select Shelving Location') %]"
name="fi:locations" size="3" multiple="multiple">
</select>
[%
<select id='[% id %]' name='[% name %]'[%
multiple ? ' multiple="multiple"' : '';
size ? (' size="' _ size _ '"') : '';
-%] aria-label="[% filter_label || l('Select item type:') %]">
+%] title="[% filter_label || l('Select item type:') %]">
[% IF none_ok %]
<option value=''>[% none_label ? none_label : l('-- Any --') %]</option>
[% END;
<form name="acct_nav">
<select name="acct_url"
- aria-label="[% l('Select an account page') %]"
title="[% l('Select an account page') %]"
onchange="window.location.href=document.acct_nav.acct_url.options[document.acct_nav.acct_url.selectedIndex].value">
<option value="" selected="selected">[% l('Go to...') %]</option>
<form name="acct_prefs_nav">
<select name="acct_prefs_url"
[% select_title = l('Select a preference page') %]
- aria-label="[% select_title %]" title="[% select_title %]"
+ title="[% select_title %]" title="[% select_title %]"
onchange="window.location.href=document.acct_prefs_nav.acct_prefs_url.options[document.acct_prefs_nav.acct_prefs_url.selectedIndex].value">
[% FOREACH page IN acct_prefs_pages;
IF page.url != prefs_page; -%]
-%]
<select [% IF id %] id='[% id %]' [% END -%]
- [% IF arialabel %] aria-label='[% arialabel %]'
- [% ELSE %] title='[% l("Select Library") %]' [% END -%]
+ title='[% arialabel || l("Select Library") %]'
name='[% name %]'>
[%-
WHILE node_stack.size > 0;
{value => "id|bibcn", label => l("Bib Call Number")}
] %]
<select name="[% name || 'qtype' %]"[% IF id; ' id="'; id ; '"' ; END -%]
- aria-label="[% l('Select query type:') %]">
+ title="[% l('Select query type:') %]">
[% query_type = query_type || CGI.param('qtype') || search.default_qtypes.0;
FOR qt IN query_types;
NEXT IF browse_only AND NOT qt.browse -%]