Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_Related Related Topics sp_TopicIcon
`:hidden` expression not working in IE8 if hidden using a `class` attribute instead of `style`
04/01/2013
14:42
Avatar
arunpjohny
Bangalore
New Member
Members
Forum Posts: 1
Member Since:
04/01/2013
sp_UserOfflineSmall Offline

If an element is hidden using an class attribute like hidden, in IE 8 $(elem).is(':hidden') returns false instead of true.

I've created a test case using jsFiddle.

Code sample

<table>
<tr class="tr-1"><td>shown</td></tr>
<tr class="tr-2" style="display: none"><td>hidden by style</td></tr>
<tr class="tr-3 hide"><td>hidden by class</td></tr>
</table>

<div id="log"></div>

<script>
var $log = $('#log');

var log = function(message){
$log.append(message + '<br />');
}

log('tr-1: ' + $('.tr-1').is(':hidden'));
log('tr-2: ' + $('.tr-2').is(':hidden'));
log('tr-3: ' + $('.tr-3').is(':hidden'));
</script>

I'm using jQuery 1.7.1 and the issue is tested against the latest version jqGrid version 4.4.1.

The issue seems to be a buggy overriding of $.expr[":"].hidden method in case of IE8 browser.

If this overridden methods is removed then the application works as expected.

Forum Timezone: Europe/Sofia

Most Users Ever Online: 715

Currently Online:
28 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

OlegK: 1255

markw65: 179

kobruleht: 144

phicarre: 132

YamilBracho: 124

Renso: 118

Member Stats:

Guest Posters: 447

Members: 11373

Moderators: 2

Admins: 1

Forum Stats:

Groups: 1

Forums: 8

Topics: 10592

Posts: 31289

Newest Members:

, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information