Bug Tracker

Ticket #6293: css.js.patch

File css.js.patch, 498 bytes (added by pyhoster, 13 years ago)

Patch to fix detection <option> as ":hidden"

  • src/css.js

    diff --git a/src/css.js b/src/css.js
    index 5d31757..073600e 100644
    a b jQuery.extend({ 
    214214if ( jQuery.expr && jQuery.expr.filters ) {
    215215        jQuery.expr.filters.hidden = function( elem ) {
    216216                var width = elem.offsetWidth, height = elem.offsetHeight,
    217                         skip = elem.nodeName.toLowerCase() === "tr";
     217                        skip = elem.nodeName.toLowerCase() === "tr" || elem.nodeName.toLowerCase() === "option" ;
    218218
    219219                return width === 0 && height === 0 && !skip ?
    220220                        true :