Side navigation
#7680 closed bug (duplicate)
Opened December 02, 2010 09:38AM UTC
Closed December 02, 2010 11:13AM UTC
Last modified January 31, 2011 05:55PM UTC
.find is not working correctly when called on element selected with a period in selector
| Reported by: | education-rf@narod.ru | Owned by: | |
|---|---|---|---|
| Priority: | high | Milestone: | 1.5 |
| Component: | selector | Version: | 1.5 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
I have a div with id="my.div". I am selecting it as
$('my\\\\.div') and it is working for me.
When I try to find children of the div with .find('tagName'), it doesn't find anything.
var parent = $('#my\\\\.div');
console.log( "parent " + parent.length + '\\n' +
".find('option') " + parent.find('div').length + '\\n' +
".children('option') " + parent.children('div').length + '\\n');
This will output:
parent 1
.find('option') 0
.children('option') 1
You can see example here http://jsbin.com/ukepa3/12
NB: in 1.4.2 it works as expected
Attachments (0)
Change History (4)
Changed December 02, 2010 11:13AM UTC by comment:1
| component: | unfiled → selector |
|---|---|
| milestone: | 1.next → 1.4.5 |
| priority: | undecided → high |
| resolution: | → duplicate |
| status: | new → closed |
Changed January 31, 2011 05:53PM UTC by comment:3
| version: | 1.4.4 → 1.5 |
|---|
There wasn't a 1.4.5 release, was actually 1.5.
Changed January 31, 2011 05:55PM UTC by comment:4
| milestone: | 1.4.5 → 1.5 |
|---|
There was no 1.4.5 release, was actually 1.5.