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.