Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Element.visible returns falsy true in IE8 #131

Closed
jwestbrook opened this issue Apr 22, 2014 · 0 comments
Closed

Element.visible returns falsy true in IE8 #131

jwestbrook opened this issue Apr 22, 2014 · 0 comments

Comments

@jwestbrook
Copy link
Collaborator

previous lighthouse ticket #3509
by Andriy Godovanets


Prototype 1.7.1
IE8

Create CSS class
.hidden { display:none !important; }

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant