Bug Tracker

Opened 14 years ago

Closed 14 years ago

#3846 closed bug (duplicate)

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


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

<script> $(function(){

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

}); </script>

<div id="elementId">



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

Attachments (1)

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

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by felix_halim

Attachment: test.html added

comment:1 Changed 14 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 14 years ago by john

Resolution: duplicate
Status: newclosed
Version: 1.3
Note: See TracTickets for help on using tickets.