CARVIEW |
Select Language
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Sat, 11 Oct 2025 03:26:31 GMT
Content-Type: text/html
Content-Length: 162
Location: https://bugs.jquery.com/ticket/12087/
Connection: keep-alive
Reporting-Endpoints: csp-endpoint='https://csp-report-api.openjs-foundation.workers.dev/'
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval' code.jquery.com; connect-src 'self'; img-src 'self' secure.gravatar.com; style-src 'self'; media-src 'self' content.jquery.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 11 Oct 2025 03:26:31 GMT
Content-Type: text/html
Last-Modified: Wed, 18 Sep 2024 14:30:33 GMT
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
ETag: W/"66eae409-3dab"
Reporting-Endpoints: csp-endpoint='https://csp-report-api.openjs-foundation.workers.dev/'
Content-Security-Policy: default-src 'self'; script-src 'self' 'wasm-unsafe-eval' code.jquery.com; connect-src 'self'; img-src 'self' secure.gravatar.com; style-src 'self'; media-src 'self' content.jquery.com; report-uri https://csp-report-api.openjs-foundation.workers.dev/; report-to csp-endpoint
Content-Encoding: gzip
#12087 (find selector doesn't work any more with an expando containing a coma) - jQuery - Bug Tracker
jQuery issues have moved to GitHub. This site is now a static archive of the old Trac bugs site. Some functions and pages are no longer available.
Skip to main content
Bug Tracker
Side navigation
#12087 closed bug (fixed)
Opened July 16, 2012 12:58PM UTC
Closed July 20, 2012 02:08AM UTC
find selector doesn't work any more with an expando containing a coma
Reported by: | anonymous | Owned by: | gibson042 |
---|---|---|---|
Priority: | low | Milestone: | None |
Component: | selector | Version: | 1.8b2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello,
This is the kind of use case I have on my application:
It seems that div.find('span[data-expando="AA,BB"]') returns nothing in the 1.8 (it works with the 1.7 version).
As you can see in the test, it also works in the 1.8, without the coma.
Additionally, please note that $('span[data-expando="AA,BB"]') returns results.
Thanks for your work !
Attachments (0)
Change History (6)
Changed July 16, 2012 02:21PM UTC by addyosmani comment:1
component: | unfiled → selector |
---|---|
priority: | undecided → low |
resolution: | → worksforme |
status: | new → closed |
Changed July 16, 2012 02:39PM UTC by anonymous comment:2
ok, I missed that point in the documentation.
I'll change my code accordingly.
Thanks a lot.
Changed July 16, 2012 04:18PM UTC by gibson042 comment:3
resolution: | worksforme |
---|---|
status: | closed → reopened |
Changed July 16, 2012 04:18PM UTC by gibson042 comment:4
owner: | → gibson042 |
---|---|
status: | reopened → assigned |
From our documentation:
If you wish to use any of the meta-characters ( such as !"#$%&'()*+,./:;<=>?@[\\]^`{|}~ ) as a literal part of a name, you must escape the character with two backslashes: \\\\
Applying this to your selector results in a test case that works fine: https://jsfiddle.net/WpGGh/