Bug Tracker

Opened 9 years ago

Closed 9 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 9 years ago by Rick Waldron

Owner: set to westlife1127
Status: newpending

Please provide a reduced test case on jsFiddle. Thanks!

comment:2 Changed 9 years ago by trac-o-bot

Status: pendingclosed

Automatically closed due to 14 days of inactivity.

Note: See TracTickets for help on using tickets.