Skip to main content

Bug Tracker

Side navigation

#10222 closed bug (duplicate)

Opened September 07, 2011 07:53PM UTC

Closed September 07, 2011 08:12PM UTC

Last modified September 07, 2011 08:12PM UTC

Receiving HTML from Ajax cuasing issues with selecting elements

Reported by: pickalo_us@yahoo.com Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.6.3
Keywords: Cc:
Blocked by: Blocking:
Description

When receiving an HTML page with ajax.

Using $( data ).find( "element" ) returns no results on the elements that are direct children of body. But works fine for all others.

I cannot control the HTML I am receiving, it will always have all basic document nodes, such as HTML, HEAD, and body. I have tested this on IE7, IE8, and Firefox 6.

As a work around I found that I can append it to the page and search it from there. Not sure if this is really a bug, but thought I would try to report it all the same.

Test Case: http://jsfiddle.net/4mPMJ/

Attachments (0)
Change History (3)

Changed September 07, 2011 07:58PM UTC by pickalo_us@yahoo.com comment:1

I found that using filter() works for the root elements, and I can use find to use CSS selectors from there. Still seems odd to me, that I cannot just select it all using CSS selectors from the get go.

Changed September 07, 2011 08:12PM UTC by ajpiano comment:2

resolution: → duplicate
status: newclosed

Changed September 07, 2011 08:12PM UTC by ajpiano comment:3

Duplicate of #3409.