diff options
Diffstat (limited to 'src/attributes.js')
-rw-r--r-- | src/attributes.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/attributes.js b/src/attributes.js index 1278ff84b..d2fc202b2 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -139,7 +139,10 @@ jQuery.fn.extend({ if ( elem ) { if ( jQuery.nodeName( elem, "option" ) ) { - return (elem.attributes.value || {}).specified ? elem.value : elem.text; + // attributes.value is undefined in Blackberry 4.7 but + // uses .value. See #6932 + var val = elem.attributes.value; + return !val || val.specified ? elem.value : elem.text; } // We need to handle select boxes special |