Bug Tracker

Opened 9 years ago

Closed 9 years ago

#8409 closed bug (invalid)

select a dom elment which append using $.append

Reported by: anonymous Owned by: anonymous
Priority: undecided Milestone: 1.next
Component: unfiled Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:

Description

when i inserts some specified content as the last child of a element. and then i failed to use the id selecter to get the dom which i append just now.

for example:

<div id="parent"></div>

$('#parent').append('<div id="child">child</div>); the length of $('#child') is 0.

Change History (2)

comment:1 Changed 9 years ago by ajpiano

Owner: set to anonymous
Status: newpending

Thank you for your time and interest in helping the jQuery project, but we require a working testcase on jsfiddle that demonstrates the issue failing in order to audit the problem.

In this case, I made a test case that shows that the behaviour you described is not actually happening,

http://jsfiddle.net/ajpiano/Br24f/

Unless you can produce a testcase that shows the behaviour you are describing, we cannot proceed any further. Thanks.

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

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.