File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,10 @@ jQuery.support = (function() {
131
131
support . radioValue = input . value === "t" ;
132
132
133
133
input . setAttribute ( "checked" , "checked" ) ;
134
+
135
+ // #11217 - WebKit loses check when the name is after the checked attribute
136
+ input . setAttribute ( "name" , "t" ) ;
137
+
134
138
div . appendChild ( input ) ;
135
139
fragment = document . createDocumentFragment ( ) ;
136
140
fragment . appendChild ( div . lastChild ) ;
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ test("unwrap()", function() {
265
265
} ) ;
266
266
267
267
var testAppend = function ( valueObj ) {
268
- expect ( 41 ) ;
268
+ expect ( 46 ) ;
269
269
var defaultText = "Try them out:"
270
270
var result = jQuery ( "#first" ) . append ( valueObj ( "<b>buga</b>" ) ) ;
271
271
equal ( result . text ( ) , defaultText + "buga" , "Check if text appending works" ) ;
@@ -317,6 +317,12 @@ var testAppend = function(valueObj) {
317
317
ok ( jQuery ( this ) . is ( ":checked" ) , "Append HTML5-formated checked radio" ) ;
318
318
} ) . remove ( ) ;
319
319
320
+ QUnit . reset ( ) ;
321
+ jQuery ( "form" ) . append ( valueObj ( "<input type='radio' checked='checked' name='radiotest' />" ) ) ;
322
+ jQuery ( "form input[name=radiotest]" ) . each ( function ( ) {
323
+ ok ( jQuery ( this ) . is ( ":checked" ) , "Append with name attribute after checked attribute" ) ;
324
+ } ) . remove ( ) ;
325
+
320
326
QUnit . reset ( ) ;
321
327
jQuery ( "#sap" ) . append ( valueObj ( document . getElementById ( "form" ) ) ) ;
322
328
equal ( jQuery ( "#sap>form" ) . size ( ) , 1 , "Check for appending a form" ) ; // Bug #910
You can’t perform that action at this time.
0 commit comments