#10006 closed bug (fixed)
method show is not working as expected in all browsers when called for document fragment
Reported by: | markel | Owned by: | Rick Waldron |
---|---|---|---|
Priority: | high | Milestone: | 1.7.2 |
Component: | effects | Version: | 1.6.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When html generated from template (or something like that), sometimes need to call method "show" to not attached elements and then append them. In contrast with method "hide", "show" is not working in this case, except for Mozilla all others browsers do not set style attribute.
Of course it's very easy to fix with setting display property manually, but it's not very easy to understand when you have this kind of inconstancy.
test case: http://jsfiddle.net/CHdWQ/
Change History (12)
comment:1 Changed 12 years ago by
Component: | unfiled → effects |
---|---|
Milestone: | None → 1.next |
Priority: | undecided → low |
Status: | new → open |
comment:2 Changed 11 years ago by
Milestone: | 1.next → 1.7.1 |
---|---|
Owner: | set to mikesherov |
Priority: | low → high |
Status: | open → assigned |
comment:4 Changed 11 years ago by
Owner: | changed from mikesherov to Rick Waldron |
---|
Whoops, didn't mean to assign @mikesherov to this, that was an accident
comment:5 Changed 11 years ago by
I cleaned up Orkel's patch and made a fresh PR: https://github.com/jquery/jquery/pull/581
comment:6 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Landing pull request 581. Updates original patch by Orkel. Fixes #10006.
More Details:
comment:7 Changed 11 years ago by
Revert "Landing pull request 581. Updates original patch by Orkel. Fixes #10006."
This reverts commit 299bc655c90cc89652417675f976ae1bfefc4d8b.
Changeset: 3586ea28a8303a8de9f7f94da9fe9c4272b3d8ec
comment:8 Changed 11 years ago by
Resolution: | fixed |
---|---|
Status: | closed → reopened |
This patch was causing a memory leak only in Testswarm so we backed it out. Yeah, I don't understand it either.
comment:9 Changed 11 years ago by
Milestone: | 1.7.1 → 1.next |
---|---|
Status: | reopened → open |
comment:10 Changed 11 years ago by
Milestone: | 1.next → 1.7.2 |
---|
comment:11 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fix #10006: Allow .show() to work on detached elements.
Changeset: cc5e8e3866e5dac7eacda5927679573c8da79492
comment:12 Changed 11 years ago by
It seems like this was added in rather than removed. I'm seeing this bug after having updated to v1.7.2 from v1.4.4, but only in Chrome.
We may be able to just add a check to see if the node is connected.
Third party pull request