Permalink
Browse files

Switch option creation to createElement due to a bug in Opera with se…

…tting selected on fragments made by jQuery
  • Loading branch information...
1 parent b079e80 commit 69ecd019852c1421cbd81fe6ceb4e22a81022ea7 timmywil committed Apr 13, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/unit/selector.js
View
@@ -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);

0 comments on commit 69ecd01

Please sign in to comment.