Modify ↓
Ticket #6929 (closed bug: invalid)
jQuery.fn.is() returning true when it should be returning false
| Reported by: | elijahr | Owned by: | |
|---|---|---|---|
| Priority: | Milestone: | 1.4.3 | |
| Component: | traversing | Version: | 1.4.2 |
| Keywords: | filtering is textnode | Cc: | |
| Blocking: | Blocked by: |
Description
There seems to be some issue with jQuery.fn.is() and text nodes. For instance, the last statement below should return false, but it is returning true.
/* put some HTML in the DOM */ $('<ol id="crumbs_menu"><li class="crumbs_link"><div></div></li></ol>').appendTo(document.body);
/* this should return false, but it returns true */ $().appendTo(document.body).is("#crumbs_menu li.crumbs_link:first > div");
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

It seems that some quotes were stripped from my example. The last statement should be:
/* this should return false, but it returns true */ $("\ ").appendTo(document.body).is("#crumbs_menu li.crumbs_link:first > div");