Posted
almost 10 years
ago
by
jobst
Hi.
The language file stored in/at
https://github.com/jquery/jquery-ui/tree/master/ui/i18n
are inconsistent.
For example the file for en-au contains
datepicker.regional[ "en-AU" ] = {
while the file for it contains
... [More]
datepicker.regional.it = {
making the setting for the default language when using the datepicker tricky to call.
Should it not be consistent as in
datepicker.regionalen-AU? = {
datepicker.regionalit? = {
In that case I only have to call the initialisation as
datepicker.setDefaults( datepicker.regionalit? );
or
datepicker.setDefaults( datepicker.regionalen-au? );
In case of the Italian language file it would raise an error "not defined".
thanks
Jobst
[Less]
|
Posted
almost 10 years
ago
by
Scott González
fixed:
Autocomplete: Use a div instead of a span for the live region
Fixes #14587
Changeset: ce5017843036151d545fba76062655fda69eac62
|
Posted
almost 10 years
ago
by
monojp
After playing with an initialised autcomplete input there are hidden accessibility helper tags created right before the closing body tag. The last span contains divs which is invalid HTML markup and the W3C Validator reports it as 'Element “div” not
... [More]
allowed as child of element “span” in this context.'
e.g.:
<ul class="ui-autocomplete ui-front ui-menu ui-widget ui-widget-content" id="ui-id-1" tabindex="0" style="display: none; top: 918px; left: 677px; width: 174px;">
<li class="ui-menu-item" id="ui-id-6" tabindex="-1">foo</li>
<li class="ui-menu-item" id="ui-id-7" tabindex="-1">bar</li>
</ul>
<span role="status" aria-live="assertive" aria-relevant="additions" class="ui-helper-hidden-accessible">
<div style="display: none;">2 results are available, use up and down arrow keys to navigate.</div>
</span>
</body>
Sorry was not able to create a simpler jsfiddle testcase, because the old jQuery UI version there does not create those accessibility tags at all. But I created the following simple test script
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI invalid autocomplete markup</title>
<script src="https://code.jquery.com/jquery-2.1.4.min.js"></script>
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
</head>
<body>
<div class="ui-widget">
<label for="tags">Tags: </label>
<input id="tags">
</div>
<script type='text/javascript'>
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
];
// init autocomplete and immediately trigger search which creates the
// incorrect HTML markup
$( "#tags" ).autocomplete({
source: availableTags,
}).autocomplete("search", "A");
// show the incorrect markup
console.log($('.ui-helper-hidden-accessible').prop('tagName'));
console.log($('.ui-helper-hidden-accessible').html());
});
</script>
</body>
</html>
which is hosted on http://playground.herndl.org/jqueryui_autocomplete/ and reports:
SPAN
<div>2 results are available, use up and down arrow keys to navigate.</div>
[Less]
|
Posted
almost 10 years
ago
by
trac-o-bot
invalid:
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you
... [More]
still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
[Less]
|
Posted
almost 10 years
ago
by
mme
What I did:
Wrote code: https://jsfiddle.net/x85hfnxr/1/
Executed code (second date picker gets destroyed)
Hovered over first date picker
Result:
Error on console: "TypeError: datepicker_instActive is null"
Expectation:
First date picker continues to work
Tested with Firefox 40.0.3 on Windows 7 Pro SP1
|
Posted
almost 10 years
ago
by
scott.gonzalez
notabug
|
Posted
almost 10 years
ago
by
moomoo
Similar to ticket #4316. Tested with most recent version of jquery ui.
http://jsfiddle.net/yyb4b5sj/
|
Posted
almost 10 years
ago
by
scott.gonzalez
duplicate:
Duplicate of #5789.
|
Posted
almost 10 years
ago
by
scott.gonzalez
duplicate:
Duplicate of #11053.We're already working on this, but we do not want a ticket that prescribes an implementation right now. I'm going to close as a duplicate of #11053, but note that we already have other existing tickets for specific widgets.
|
Posted
almost 10 years
ago
by
shensis
For detailed explanation of national (Arabic/Hebrew) calendars
please see, for instance, the following reference document.
https://docs.google.com/document/d/1dDrSwimrQbpbXybhMYDEiJXLeeqvelnY4cc8HeCP1Nk/edit?usp=sharing.
The expected
... [More]
functionality of national date pickers to be introduced by this feature is
Classes implementing calendaring logic we expect more or less standard API which should serve following purposes:
Conversion of date represented as a string from one calendaring system to enother
Support integration of calendaring logic into JQuery date picker - https://jqueryui.com/datepicker/
by providing auxiliary methods specific for National calendars.
Date picker ( https://jqueryui.com/datepicker/) side is expected to show the date inside date picker (both input field and rectangular area on which usually one month of the calendar is graphically displayed) based on different calendaring systems (type of calendar [Thai, Islamic, Hebrew etc.] can be probably passed as a widget option to date picker widget during creation / initialization.
According to Hebrew cultural preferences, the days ow month as well as year notation should be presented by notation based on letters of Hebrew alphabet.
The month names for both Arabic and Hebrew date picker should be specific for each language and presented by letters of corresponding alphabet.
Already now it is clear that at the very least following items are currently missing in JQuery:
Integration of non Gregorian calendar logic into JQuery date picker
National calendars logic propo.
Support for Hebrew numerals in Hebrew calendar ( https://en.wikipedia.org/wiki/Hebrew_numerals)
Additional types of non Gregorian calendars
We are willing to contribute those items
[Less]
|