Opened 12 years ago
Closed 12 years ago
#7333 closed bug
bug report
Reported by: | westlife1127 | Owned by: | westlife1127 |
---|---|---|---|
Priority: | undecided | Milestone: | 1.5 |
Component: | unfiled | Version: | 1.4.3 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
hi,
i meet a bug when testing my codes . the codes go below:
$("button#btn1").click(function(){ $("img#222").append($("img#111").clone()) });
the browser reminds:"accidently call the visits to methods or attributes" (translated from Chinese).
the codes donot work unless set "body" as the ".append()" method selector,regardlessly any other elements.
neverthlessly,by "body" selector still occurs uncorrect location(append to wrong place).
refer to browsers reminds,i find the original jQuery codes:
" append: function() {
return this.domManip(arguments, true, function( elem ) {
if ( this.nodeType === 1 ) {
this.appendChild( elem );
}
});
},
". what are your suggestions?
regards
yours
Change History (2)
comment:1 Changed 12 years ago by
Owner: | set to westlife1127 |
---|---|
Status: | new → pending |
comment:2 Changed 12 years ago by
Status: | pending → closed |
---|
Automatically closed due to 14 days of inactivity.
Please provide a reduced test case on jsFiddle. Thanks!