Opened 13 years ago
Closed 13 years ago
#5868 closed bug (invalid)
:contains() Selector fails to find match when string is passed as a variable
Reported by: | gloddy | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4.1 |
Component: | unfiled | Version: | 1.4 |
Keywords: | contains | Cc: | |
Blocked by: | Blocking: |
Description
Passing :contains a direct string works: $('ul li:contains("One")').fadeOut();
But passing that same string as a variable fails:
value_in_variable = "Two"; $('ul li:contains(value_in_variable)').fadeOut();
I've attached a standalone html example file.
Attachments (1)
Change History (3)
Changed 13 years ago by
Attachment: | contains_fail_test.htm added |
---|
comment:1 Changed 13 years ago by
This bug can be deleted. I revisited the issue and found it was a syntax mistake. My apologies.
comment:2 Changed 13 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
test case for contains failure