X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fattributes.js;h=1278ff84bfd98b19f2c94dcdd6ef6e247db28906;hb=396dd2127330a7ed742d1e9092af54b668c46e85;hp=aca9e055dbdf1e113ca5d798230fb103cd7130c2;hpb=6f031c10157a2ca2265e0dbf684ef527d79afb56;p=jquery.git diff --git a/src/attributes.js b/src/attributes.js index aca9e05..1278ff8 100644 --- a/src/attributes.js +++ b/src/attributes.js @@ -278,7 +278,8 @@ jQuery.extend({ } // If applicable, access the attribute via the DOM 0 way - if ( name in elem && notxml && !special ) { + // 'in' checks fail in Blackberry 4.7 #6931 + if ( (name in elem || elem[ name ] !== undefined) && notxml && !special ) { if ( set ) { // We can't allow the type property to be changed (since it causes problems in IE) if ( name === "type" && rtype.test( elem.nodeName ) && elem.parentNode ) {