@@ -240,8 +240,8 @@ $.extend( Datepicker.prototype, {
240
240
inst . append . remove ( ) ;
241
241
}
242
242
if ( appendText ) {
243
- inst . append = $ ( "<span></span> " )
244
- . attr ( "class" , this . _appendClass )
243
+ inst . append = $ ( "<span>" )
244
+ . addClass ( this . _appendClass )
245
245
. text ( appendText ) ;
246
246
input [ isRTL ? "before" : "after" ] ( inst . append ) ;
247
247
}
@@ -261,19 +261,19 @@ $.extend( Datepicker.prototype, {
261
261
buttonImage = this . _get ( inst , "buttonImage" ) ;
262
262
263
263
if ( this . _get ( inst , "buttonImageOnly" ) ) {
264
- inst . trigger = $ ( "<img/ >" )
264
+ inst . trigger = $ ( "<img>" )
265
265
. addClass ( this . _triggerClass )
266
266
. attr ( {
267
267
src : buttonImage ,
268
268
alt : buttonText ,
269
269
title : buttonText
270
270
} ) ;
271
271
} else {
272
- inst . trigger = $ ( "<button type='button'></button> " )
272
+ inst . trigger = $ ( "<button type='button'>" )
273
273
. addClass ( this . _triggerClass ) ;
274
274
if ( buttonImage ) {
275
275
inst . trigger . html (
276
- $ ( "<img/ >" )
276
+ $ ( "<img>" )
277
277
. attr ( {
278
278
src : buttonImage ,
279
279
alt : buttonText ,
@@ -1726,7 +1726,7 @@ $.extend( Datepicker.prototype, {
1726
1726
this . _getFormatConfig ( inst ) ) ) ;
1727
1727
1728
1728
if ( this . _canAdjustMonth ( inst , - 1 , drawYear , drawMonth ) ) {
1729
- prev = $ ( "<a></a> " )
1729
+ prev = $ ( "<a>" )
1730
1730
. attr ( {
1731
1731
"class" : "ui-datepicker-prev ui-corner-all" ,
1732
1732
"data-handler" : "prev" ,
@@ -1735,21 +1735,21 @@ $.extend( Datepicker.prototype, {
1735
1735
} )
1736
1736
. append (
1737
1737
$ ( "<span>" )
1738
- . attr ( "class" , "ui-icon ui-icon-circle-triangle-" +
1738
+ . addClass ( "ui-icon ui-icon-circle-triangle-" +
1739
1739
( isRTL ? "e" : "w" ) )
1740
1740
. text ( prevText )
1741
1741
) [ 0 ] . outerHTML ;
1742
1742
} else if ( hideIfNoPrevNext ) {
1743
1743
prev = "" ;
1744
1744
} else {
1745
- prev = $ ( "<a></a> " )
1745
+ prev = $ ( "<a>" )
1746
1746
. attr ( {
1747
1747
"class" : "ui-datepicker-prev ui-corner-all ui-state-disabled" ,
1748
1748
title : prevText
1749
1749
} )
1750
1750
. append (
1751
1751
$ ( "<span>" )
1752
- . attr ( "class" , "ui-icon ui-icon-circle-triangle-" +
1752
+ . addClass ( "ui-icon ui-icon-circle-triangle-" +
1753
1753
( isRTL ? "e" : "w" ) )
1754
1754
. text ( prevText )
1755
1755
) [ 0 ] . outerHTML ;
@@ -1761,7 +1761,7 @@ $.extend( Datepicker.prototype, {
1761
1761
this . _getFormatConfig ( inst ) ) ) ;
1762
1762
1763
1763
if ( this . _canAdjustMonth ( inst , + 1 , drawYear , drawMonth ) ) {
1764
- next = $ ( "<a></a> " )
1764
+ next = $ ( "<a>" )
1765
1765
. attr ( {
1766
1766
"class" : "ui-datepicker-next ui-corner-all" ,
1767
1767
"data-handler" : "next" ,
@@ -1770,14 +1770,14 @@ $.extend( Datepicker.prototype, {
1770
1770
} )
1771
1771
. append (
1772
1772
$ ( "<span>" )
1773
- . attr ( "class" , "ui-icon ui-icon-circle-triangle-" +
1773
+ . addClass ( "ui-icon ui-icon-circle-triangle-" +
1774
1774
( isRTL ? "w" : "e" ) )
1775
1775
. text ( nextText )
1776
1776
) [ 0 ] . outerHTML ;
1777
1777
} else if ( hideIfNoPrevNext ) {
1778
1778
next = "" ;
1779
1779
} else {
1780
- next = $ ( "<a></a> " )
1780
+ next = $ ( "<a>" )
1781
1781
. attr ( {
1782
1782
"class" : "ui-datepicker-next ui-corner-all ui-state-disabled" ,
1783
1783
title : nextText
@@ -1797,7 +1797,7 @@ $.extend( Datepicker.prototype, {
1797
1797
1798
1798
controls = "" ;
1799
1799
if ( ! inst . inline ) {
1800
- controls = $ ( "<button></button> " )
1800
+ controls = $ ( "<button>" )
1801
1801
. attr ( {
1802
1802
type : "button" ,
1803
1803
"class" : "ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all" ,
@@ -1812,7 +1812,7 @@ $.extend( Datepicker.prototype, {
1812
1812
buttonPanel = $ ( "<div class='ui-datepicker-buttonpane ui-widget-content'>" )
1813
1813
. append ( isRTL ? controls : "" )
1814
1814
. append ( this . _isInRange ( inst , gotoDate ) ?
1815
- $ ( "<button></button> " )
1815
+ $ ( "<button>" )
1816
1816
. attr ( {
1817
1817
type : "button" ,
1818
1818
"class" : "ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all" ,
0 commit comments