Skip to content

Commit b67d103

Browse files
Stephane Deschampsjzaefferer
authored andcommitted
Day TH's: scope=col. Closes jquerygh-1074
A TH must feature a way to know which span of TD's it applies to, and in simple tables such as date tables, this can be achieved through the use of the scope attribute.
1 parent e263ebd commit b67d103

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/jquery.ui.datepicker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1721,7 +1721,7 @@ $.extend(Datepicker.prototype, {
17211721
thead = (showWeek ? "<th class='ui-datepicker-week-col'>" + this._get(inst, "weekHeader") + "</th>" : "");
17221722
for (dow = 0; dow < 7; dow++) { // days of the week
17231723
day = (dow + firstDay) % 7;
1724-
thead += "<th" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" +
1724+
thead += "<th scope='col'" + ((dow + firstDay + 6) % 7 >= 5 ? " class='ui-datepicker-week-end'" : "") + ">" +
17251725
"<span title='" + dayNames[day] + "'>" + dayNamesMin[day] + "</span></th>";
17261726
}
17271727
calender += thead + "</tr></thead><tbody>";

0 commit comments

Comments
 (0)