Bug Tracker

Modify

Ticket #7333 (closed bug)

Opened 3 years ago

Last modified 3 years ago

bug report

Reported by: westlife1127 Owned by: westlife1127
Priority: undecided Milestone: 1.5
Component: unfiled Version: 1.4.3
Keywords: Cc:
Blocking: Blocked by:

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

comment:1 Changed 3 years ago by rwaldron

  • Owner set to westlife1127
  • Status changed from new to pending

Please provide a reduced test case on jsFiddle. Thanks!

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

  • Status changed from pending to closed

Automatically closed due to 14 days of inactivity.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.