Bug Tracker

Modify

Ticket #4581 (closed bug: worksforme)

Opened 4 years ago

Last modified 11 months ago

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:
Blocking: Blocked by:

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?

Change History

comment:1 Changed 3 years ago by rwaldron

  • Priority changed from major to low
  • Status changed from new to closed
  • Resolution set to worksforme

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

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

comment:2 follow-up: ↓ 3 Changed 11 months ago by markus.waidhofer@…

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).

comment:3 in reply to: ↑ 2 Changed 11 months ago by markus.waidhofer@…

Firefox I meant, sorry.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.