Bug Tracker

Modify

Ticket #3846 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

Selector "#elementId a" failed on Chrome

Reported by: felix_halim Owned by: john
Priority: major Milestone: 1.3.1
Component: selector Version: 1.3
Keywords: ID descendant Cc:
Blocking: Blocked by:

Description

<script src="jquery-1.3.min.js"></script>

<script> $(function(){

alert($('#elementId a').length);

}); </script>

<div id="elementId">

<a>test</a>

</div>

In Chome, the alert is "0" while in Firefox is "1". The correct one is "1".

Attachments

test.html Download (167 bytes) - added by felix_halim 4 years ago.

Change History

Changed 4 years ago by felix_halim

comment:1 Changed 4 years ago by balazs.endresz

It's a bug in webkit's querySelectorAll:  http://groups.google.com/group/jquery-dev/msg/69281215fd811996 but works with proper doctype!

duplicate:  http://dev.jquery.com/ticket/3840

comment:2 Changed 4 years ago by john

  • Status changed from new to closed
  • Version set to 1.3
  • Resolution set to duplicate
  • Milestone changed from 1.3 to 1.3.1

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.