Skip to main content

Bug Tracker

Side navigation

#3343 closed bug (duplicate)

Opened September 09, 2008 10:07AM UTC

Closed December 19, 2008 06:11PM UTC

Webkit: .is(':visible') is false for new nodes

Reported by: genezys Owned by:
Priority: major Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: Cc: genezys, flesler
Blocked by: Blocking:
Description

Every other browsers returns true when testing .is(':visible') on newly created nodes (like $('<div/>')). WebKit returns false.

So methods that works with .filter(':visible') don't work on new nodes like .hide().

Test case:

$('<p>Should not be visible</p>').hide().appendTo(document.body);

The problem is real because the workaround is to append the nodes in the document and hide them after resulting in a huge performance hit for large trees.

Attachments (0)
Change History (2)

Changed September 09, 2008 05:13PM UTC by flesler comment:1

cc: → genezys, flesler
component: unfilledselector
need: ReviewPatch
owner: flesler

Changed December 19, 2008 06:11PM UTC by john comment:2

resolution: → duplicate
status: newclosed

Duplicate of #1239.