Fix various issues in our html files, third batch

This commit is contained in:
Jörn Zaefferer 2012-04-23 18:55:11 +02:00
parent 22edb77559
commit d40993dcf6
3 changed files with 49 additions and 55 deletions

View File

@ -98,7 +98,7 @@
<a title="Next" class="ui-datepicker-next ui-corner-all" href="#"><span class="ui-icon ui-icon-circle-triangle-e">Next</span></a>
<div class="ui-datepicker-title">
<select class="ui-datepicker-month-year">
<optgroup name="2007">
<optgroup label="2007">
<option value="2007_0">January 2007</option>
<option value="2007_1">February 2007</option>
<option value="2007_2">March 2007</option>
@ -112,7 +112,7 @@
<option value="2007_10">November 2007</option>
<option value="2007_11">December 2007</option>
</optgroup>
<optgroup name="2008">
<optgroup label="2008">
<option value="2008_0">January 2008</option>
<option value="2008_1">February 2008</option>
<option value="2008_2">March 2008</option>
@ -126,7 +126,7 @@
<option value="2008_10">November 2008</option>
<option selected="selected" value="2008_11">December 2008</option>
</optgroup>
<optgroup name="2009">
<optgroup label="2009">
<option value="2009_0">January 2009</option>
<option value="2009_1">February 2009</option>
<option value="2009_2">March 2009</option>
@ -140,7 +140,7 @@
<option value="2009_10">November 2009</option>
<option value="2009_11">December 2009</option>
</optgroup>
<optgroup name="2010">
<optgroup label="2010">
<option value="2010_0">January 2010</option>
<option value="2010_1">February 2010</option>
<option value="2010_2">March 2010</option>

View File

@ -39,9 +39,7 @@
<img src="../images/jqueryui_32x32.png" usemap="#mymap" width="10" height="10" alt="">
<map name="mymap">
<area shape="rect" coords="0,0,1,1" id="areaCoordsNoHref" alt="">
<area shape="rect" coords="1,1,2,2" href="foo.html" id="areaCoordsHref" alt="">
<area shape="rect" coords="0,0,0,0" href="foo.html" id="areaCoordsNoSizeHref" alt="">
<area href="foo.html" id="areaNoCoordsHref" alt="">
</map>
<map name="mymap2">

View File

@ -6,19 +6,19 @@
module("core - selectors");
function isFocusable(selector, msg) {
ok($(selector).is(':focusable'), msg + " - selector " + selector + " is focusable");
QUnit.push($(selector).is(':focusable'), null, null, msg + " - selector " + selector + " is focusable");
}
function isNotFocusable(selector, msg) {
ok($(selector).length && !$(selector).is(':focusable'), msg + " - selector " + selector + " is not focusable");
QUnit.push($(selector).length && !$(selector).is(':focusable'), null, null, msg + " - selector " + selector + " is not focusable");
}
function isTabbable(selector, msg) {
ok($(selector).is(':tabbable'), msg + " - selector " + selector + " is tabbable");
QUnit.push($(selector).is(':tabbable'), null, null, msg + " - selector " + selector + " is tabbable");
}
function isNotTabbable(selector, msg) {
ok($(selector).length && !$(selector).is(':tabbable'), msg + " - selector " + selector + " is not tabbable");
QUnit.push($(selector).length && !$(selector).is(':tabbable'), null, null, msg + " - selector " + selector + " is not tabbable");
}
test("data", function() {
@ -150,9 +150,7 @@ test("focusable - not natively focusable with various tabindex", function() {
});
test("focusable - area elements", function() {
isNotFocusable('#areaCoordsNoHref', 'coords but no href');
isFocusable('#areaCoordsHref', 'coords and href');
isFocusable('#areaCoordsNoSizeHref', 'coords of zero px and href');
isFocusable('#areaNoCoordsHref', 'href but no coords');
isNotFocusable('#areaNoImg', 'not associated with an image');
});
@ -229,9 +227,7 @@ test("tabbable - not natively tabbable with various tabindex", function() {
});
test("tabbable - area elements", function() {
isNotTabbable('#areaCoordsNoHref', 'coords but no href');
isTabbable('#areaCoordsHref', 'coords and href');
isTabbable('#areaCoordsNoSizeHref', 'coords of zero px and href');
isTabbable('#areaNoCoordsHref', 'href but no coords');
isNotTabbable('#areaNoImg', 'not associated with an image');
});