Side navigation
#8141 closed bug (duplicate)
Opened February 02, 2011 01:39PM UTC
Closed April 02, 2011 12:47AM UTC
Last modified April 02, 2011 12:47AM UTC
appendTo appends given HTML twice when used in document.onready
Reported by: | mduerksen | Owned by: | rwaldron |
---|---|---|---|
Priority: | high | Milestone: | 1.5.1 |
Component: | event | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
This only happens when using document.onready. With $(document).ready() everything is fine. Also, this only happens with v1.5, v1.4.4 works even with document.onready.
Example:
http://jsfiddle.net/ehynds/yuMTH/
OS: Win7
Tested Browsers: IE8, FF 3.6.13
Attachments (0)
Change History (5)
Changed February 02, 2011 01:49PM UTC by comment:1
Changed February 02, 2011 03:22PM UTC by comment:2
component: | unfiled → event |
---|---|
milestone: | 1.next → 1.5.1 |
owner: | → dmethvin |
priority: | undecided → low |
status: | new → assigned |
We've never supported a document.onready property, so this usage is invalid. However I'll look into it and see why it is firing at all.
To reiterate, document.onready is not valid usage and we do not intend to support it, so do not expect it to work.
Changed February 02, 2011 04:43PM UTC by comment:3
blockedby: | → 8145 |
---|---|
owner: | dmethvin → rwaldron |
priority: | low → high |
Preliminary fix to jQuery.ready()...
https://github.com/rwldrn/jquery/commit/c29faf374364784348429e9055ffbf3513871c62
Changed April 02, 2011 12:47AM UTC by comment:4
resolution: | → duplicate |
---|---|
status: | assigned → closed |
better code example: http://jsfiddle.net/ehynds/yuMTH/2/