From 92cbf5362cfe4fe52e919eecfebe8ecbe27ee5e3 Mon Sep 17 00:00:00 2001 From: Oleg Date: Thu, 16 Jan 2014 02:05:57 +0400 Subject: Attrs: Fix valHook for option element Fixes #14686 --- test/unit/attributes.js | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/unit') diff --git a/test/unit/attributes.js b/test/unit/attributes.js index 8ba2b4459..2b2eee425 100644 --- a/test/unit/attributes.js +++ b/test/unit/attributes.js @@ -1448,3 +1448,12 @@ test( "coords returns correct values in IE6/IE7, see #10828", function() { area = map.html("a").find("area"); equal( area.attr("coords"), "0,0,0,0", "did not retrieve coords correctly" ); }); + +test( "should not throw at $(option).val() (#14686)", 1, function() { + try { + jQuery( "