Skip to main content

Bug Tracker

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 jitter comment:1

component: unfiledselector
milestone: 1.next1.4.5
priority: undecidedhigh
resolution: → duplicate
status: newclosed

Changed December 02, 2010 11:13AM UTC by jitter comment:2

Duplicate of #7533.

Changed January 31, 2011 05:53PM UTC by john comment:3

version: 1.4.41.5

There wasn't a 1.4.5 release, was actually 1.5.

Changed January 31, 2011 05:55PM UTC by john comment:4

milestone: 1.4.51.5

There was no 1.4.5 release, was actually 1.5.