Skip to content

Commit

Permalink
Switch option creation to createElement due to a bug in Opera with se…
Browse files Browse the repository at this point in the history
…tting selected on fragments made by jQuery
  • Loading branch information
timmywil committed Apr 13, 2011
1 parent b079e80 commit 69ecd01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/selector.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ test("pseudo - form", function() {

test("disconnected nodes", function() {
expect(4);
var $opt = jQuery( '<option value="whipit">Whip It</option>' ).appendTo("#main").detach();
var $opt = jQuery('<option></option>').attr("value", "whipit").appendTo("#main").detach();
equal( $opt.val(), "whipit", "option value" );
equal( $opt.is(":selected"), false, "unselected option" );
$opt.attr("selected", true);
Expand Down

0 comments on commit 69ecd01

Please sign in to comment.