#3509 new
Andriy Godovanets

Element.visible returns falsy true in IE8

Reported by Andriy Godovanets | August 23rd, 2013 @ 05:30 PM

Prototype 1.7.1
IE8

  1. Create CSS class

.hidden { display:none !important; }

  1. set this class to HTML element

Issue:
$("test").visible() === true

The problem in visible method implementation:

function visible(element) {
    return $(element).style.display !== 'none';
}

This could be fixed to something like

function visible(element) {
    return getRawStyle($(element), "display") !== 'none';
}

but getRawStyle function located in other space

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages