Bug 1565075 - Convert textbox type=autocomplete to HTML input, part 4, a11y. r=mkmelin

This commit is contained in:
Alessandro Castellani 2019-09-19 10:54:33 -07:00
Родитель 1cf20d0301
Коммит 68954f15c4
5 изменённых файлов: 7 добавлений и 5 удалений

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

@ -82,7 +82,7 @@
<hbox class="addressingWidgetCell" width="16">
<image class="usertype-icon"/>
</hbox>
<hbox class="addressingWidgetCell" flex="1">
<hbox class="addressingWidgetCell" flex="1" role="combobox">
<html:input is="autocomplete-input" id="attendeesInput"
class="plain textbox-addressingWidget uri-element"
autocompletesearch="addrbook ldap"

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

@ -58,10 +58,11 @@
<richlistbox id="addressingWidget" style="height: 15em;" onclick="awClickEmptySpace(event.target, true)">
<richlistitem class="addressingWidgetItem" allowevents="true">
<hbox class="addressingWidgetCell input-container" flex="1">
<hbox class="addressingWidgetCell input-container" flex="1" role="combobox">
<image onclick="this.nextElementSibling.select();" class="person-icon"/>
<html:input is="autocomplete-input" id="addressCol1#1"
class="plain textbox-addressingWidget uri-element"
aria-labelledby="addressCol1#1"
autocompletesearch="addrbook ldap"
autocompletesearchparam="{}"
timeout="300"

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

@ -71,10 +71,11 @@
<richlistbox id="addressingWidget" style="height: 15em;" onclick="awClickEmptySpace(event.target, true)">
<richlistitem class="addressingWidgetItem" allowevents="true">
<hbox class="addressingWidgetCell input-container" flex="1">
<hbox class="addressingWidgetCell input-container" flex="1" role="combobox">
<image onclick="this.nextElementSibling.select();" class="person-icon"/>
<html:input is="autocomplete-input" id="addressCol1#1"
class="plain textbox-addressingWidget uri-element"
aria-labelledby="addressCol1#1"
autocompletesearch="addrbook ldap"
autocompletesearchparam="{}"
timeout="300"

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

@ -2035,7 +2035,7 @@
</menupopup>
</menulist>
</hbox>
<hbox class="addressingWidgetCell input-container" flex="1">
<hbox class="addressingWidgetCell input-container" flex="1" role="combobox">
<html:input is="autocomplete-input" id="addressCol2#1"
class="plain textbox-addressingWidget uri-element"
aria-labelledby="addressCol1#1"

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

@ -427,7 +427,7 @@ function awAppendNewRow(setFocus) {
awSetFocusTo(input);
}
}
return input ? input : null;
return input;
}
// functions for accessing the elements in the addressing widget