Skip to main content

Bug Tracker

Side navigation

#7449 closed bug (worksforme)

Opened November 09, 2010 03:41PM UTC

Closed November 09, 2010 09:18PM UTC

element hidden external to DOM doesnt show (once appended)

Reported by: enideo Owned by:
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.4rc
Keywords: Cc:
Blocked by: Blocking:

When an element is created out of the DOM and it's hidden then it does not appear when simultaneously inserted into the DOM and faded in.

This is the scenario where I found it, perhaps the simultaneous part / external to the DOM is not relevant.

Bug occurs on my Ubuntu versions of Chrome (7.0.517) and Opera (10.63), but not Firefox.

Not sure if this is a true bug as the scenario might not be a feature jQuery intends to support but it is a regression since 1.4.3.

Could be related to bug #7331 which has been fixed -raised after my comment on GitHub:

Hope this helps with the release,


PS someone else has written comment:3:ticket:7331 about the loss of the original display value (inline, block), could be related, not sure if a proper bug has been filed for that issue either so thought I'd mention it here

Attachments (0)
Change History (4)

Changed November 09, 2010 04:21PM UTC by boushley comment:1

I think the issue has more to do with the fact that when you do hide while its not in the dom show or fadein or any of the above fail as show with this fiddle Even if its not done at the same time it still doesn't work. However if you use .css('display', '') it works as is shown in this

So this is an issue with the fact that if you hide an element while it's not attached to the dom you can't show it once it is attached to the dom.

Changed November 09, 2010 04:23PM UTC by boushley comment:2

Also of note, if you run all of these jsfiddle's against the newest version of jQuery (the GIT 0) on jsfiddle the issue is resolved.

Changed November 09, 2010 08:15PM UTC by enideo comment:3

Oh yeah you're right it does work with the Git version, sorry I didn't check! Thanks for looking into it anyway..

Changed November 09, 2010 09:18PM UTC by snover comment:4

resolution: → worksforme
status: newclosed