From: jeresig Date: Mon, 27 Sep 2010 13:07:54 +0000 (-0400) Subject: Bug fix for commit 2c4b20809e5d32e916c479c9b63a6b7528c880ce - technique wasn't workin... X-Git-Tag: 1.4.3rc1~51 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=157a383dae5335ef1056d3818d7dd70ac81c25a7;p=jquery.git Bug fix for commit 2c4b20809e5d32e916c479c9b63a6b7528c880ce - technique wasn't working as expected in WebKit browsers. Thanks to @jitter for the bug fix. --- diff --git a/src/attributes.js b/src/attributes.js index fd3e38ace..608b8e339 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -164,7 +164,7 @@ jQuery.fn.extend({ var option = options[ i ]; // Don't return options that are disabled or in a disabled optgroup - if ( option.selected && !option.disabled && + if ( option.selected && option.getAttribute("disabled") === null && (!option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" )) ) { // Get the specific value for the option value = jQuery(option).val();