Bug Tracker

Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#9589 closed bug (wontfix)

TR.is(':visible') is not reliable on IE6/7

Reported by: Mangos Owned by:
Priority: high Milestone: 1.next
Component: selector Version: 1.6
Keywords: Cc:
Blocked by: Blocking:

Description

If the table is inside a hidden div, which is hidden dynamically, the tr tag in the is(':visible') function will return true on IE6 and IE7.

Please take a look at this example

Change History (4)

comment:1 Changed 8 years ago by Mangos

It seems the bug has been fixed two years ago, like this tracker #4512. But from the latest version it still fails.

comment:2 Changed 8 years ago by timmywil

Component: unfiledselector
Priority: undecidedhigh
Status: newopen

comment:3 Changed 8 years ago by john

Resolution: wontfix
Status: openclosed

Unfortunately I don't think that this is an edge case that we're going to support. Elements within hidden elements is a very weird edge case that's hard to work against, in general.

comment:4 in reply to:  3 Changed 8 years ago by Mangos

Replying to john:

Unfortunately I don't think that this is an edge case that we're going to support. Elements within hidden elements is a very weird edge case that's hard to work against, in general.

In fact, the element is not always hidden, if the element's visibility is changed dynamically, we cannot get the correct status from the function is(':visible'). I think many frameworks use jQuery as their core Javascript library, you may consider to make this issue as normal, rather than closed it with won't fix.

By the way, we used the workaround for this to check each TD's offsetHeight when if the target is TR and the browser is IE6/7.

Thanks, Mangos

Note: See TracTickets for help on using tickets.