Skip to main content

Bug Tracker

Side navigation

#4581 closed bug (worksforme)

Opened April 23, 2009 07:50AM UTC

Closed October 27, 2010 10:47PM UTC

Last modified June 20, 2012 07:54AM UTC

don't work selector such as $('#some_id #another_id).anything

Reported by: n2j7 Owned by: john
Priority: low Milestone:
Component: selector Version: 1.3.2
Keywords: selector id in id Cc:
Blocked by: Blocking:
Description

Have:

<div id='someDiv'><input id='someInput' type='text'/></div>

Try:

// for example tagName

alert($('#someDiv #someInput').attr('tagName'));

Get:

undefined on version 1.3.1 and 1.3.2

INPUT on version 1.2.6

But if:

alert($('#someDiv').find('#someInput').attr('tagName'));

Get:

INPUT in any version

Question: why?

Attachments (0)
Change History (3)

Changed October 27, 2010 10:47PM UTC by rwaldron comment:1

priority: majorlow
resolution: → worksforme
status: newclosed

This issue (whatever that might've been) no longer exists

http://jsfiddle.net/rwaldron/NSYYJ/

Changed June 20, 2012 07:53AM UTC by markus.waidhofer@airwin.com comment:2

The bug seems to be valid again. In the given jsfiddle, the console output says "undefined" in Chrome Version "19.0.1084.56 m", Firebug 13.0.1, Internet Explorer 9 (all on Windows 7).

Changed June 20, 2012 07:54AM UTC by markus.waidhofer@airwin.com comment:3

Firefox I meant, sorry.