Opened 12 years ago
Closed 11 years ago
#8768 closed bug (fixed)
Chunker has problems with single quote in attribute filter
Reported by: | Owned by: | timmywil | |
---|---|---|---|
Priority: | high | Milestone: | 1.next |
Component: | selector | Version: | 1.5.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hello,
When a Browser does not support querySelectorAll (e.g. EnvJs headless browser), the "old" Sizzle implementation is used.
With that Sizzle implementation the selector jQuery(':button[title="Don\'t Save"]')
fails. The exception is: Syntax error, unrecognized expression: Save"]
It seems like the Chunker doesn't like the single quote within the attribute filter.
Note that when querySelectorAll is available (e.g. in FireFox 3.6) the selector works fine.
Change History (11)
comment:1 Changed 12 years ago by
Component: | unfiled → selector |
---|---|
Owner: | set to [email protected]… |
Status: | new → pending |
comment:2 Changed 12 years ago by
Ok, here it is: http://jsfiddle.net/W36Av/
Please note that you need a browser that does not support *querySelectorAll* (IE 6, IE 7, FF 3.0) to reproduce the error.
comment:3 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
comment:4 Changed 12 years ago by
Obviously I was not aware of the correct WF in this tracker. I replied promptly to the question asked two weeks ago, but should have also manually changed the status(?).
Anyways, the bug is still there, so I guess it would be best to reopen this ticket.
comment:5 Changed 12 years ago by
Priority: | undecided → high |
---|---|
Resolution: | invalid |
Status: | closed → reopened |
Looks like you opened the ticket as orsiumen and posted the fiddle as anonymous so the tracker didn't think you responded. Reopening. Agree that the escaped quote may be the issue.
comment:6 Changed 12 years ago by
Status: | reopened → open |
---|
comment:7 Changed 12 years ago by
Aha, I see. Saved my email address as a preference. Next time I won't forget ;)
comment:10 Changed 11 years ago by
Owner: | changed from [email protected]… to timmywil |
---|---|
Status: | open → assigned |
comment:11 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!
Additionally, test against the jQuery Edge version to ensure the issue still exists.