Skip to main content

Bug Tracker

Side navigation

#3846 closed bug (duplicate)

Opened January 14, 2009 04:26PM UTC

Closed January 15, 2009 02:13PM UTC

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:
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 (1)
  • test.html (0.2 KB) - added by felix_halim January 14, 2009 04:26PM UTC.
Change History (2)

Changed January 14, 2009 09:33PM UTC by balazs.endresz comment:1

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

Changed January 15, 2009 02:13PM UTC by john comment:2

milestone: 1.31.3.1
resolution: → duplicate
status: newclosed
version: → 1.3