Bug Tracker

Modify

Ticket #9589 (closed bug: wontfix)

Opened 2 years ago

Last modified 15 months ago

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:
Blocking: Blocked by:

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

comment:1 Changed 2 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 2 years ago by timmywil

  • Priority changed from undecided to high
  • Status changed from new to open
  • Component changed from unfiled to selector

comment:3 follow-up: ↓ 4 Changed 2 years ago by john

  • Status changed from open to closed
  • Resolution set to wontfix

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 23 months 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

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.