Skip to main content

Bug Tracker

Side navigation

#6089 closed bug (invalid)

Opened February 12, 2010 05:51PM UTC

Closed February 16, 2010 09:01PM UTC

Next Siblings (“prev ~ siblings”) and :contains() Selectors

Reported by: alexn Owned by:
Priority: Milestone: 1.4.2
Component: selector Version: 1.4.1
Keywords: :contains Cc:
Blocked by: Blocking:
Description

$('#divID1 ~ #divID2 button').length returns 2 elements as expected, but $("#divID1 ~ #divID2 button:contains('Second')").length returns 0 elements, which is not correct - it should return 1 button element with the 'Second' text.

Tested in Google Chrome 4.0, jQuery 1.4.1

Example:

<div>

<div id="divID1">Some text</div>

<div id="divID2">

<button type="button">First</button>

<button type="button">Second</button>

</div>

</div>

Attachments (1)
  • test.html (0.8 KB) - added by alexn February 12, 2010 05:52PM UTC.
Change History (1)

Changed February 16, 2010 09:01PM UTC by john comment:1

resolution: → invalid
status: newclosed

I think you perhaps meant to do [value*=Contains].