Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…tting selected on fragments made by jQuery
  • Loading branch information...
commit 69ecd019852c1421cbd81fe6ceb4e22a81022ea7 1 parent b079e80
authored April 12, 2011

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  test/unit/selector.js
2  test/unit/selector.js
@@ -550,7 +550,7 @@ test("pseudo - form", function() {
550 550
 
551 551
 test("disconnected nodes", function() {
552 552
 	expect(4);
553  
-	var $opt = jQuery( '<option value="whipit">Whip It</option>' ).appendTo("#main").detach();
  553
+	var $opt = jQuery('<option></option>').attr("value", "whipit").appendTo("#main").detach();
554 554
 	equal( $opt.val(), "whipit", "option value" );
555 555
 	equal( $opt.is(":selected"), false, "unselected option" );
556 556
 	$opt.attr("selected", true);

0 notes on commit 69ecd01

Please sign in to comment.
Something went wrong with that request. Please try again.