Side navigation
#7643 closed bug (duplicate)
Opened November 27, 2010 06:02PM UTC
Closed November 27, 2010 07:50PM UTC
Last modified March 13, 2012 11:03PM UTC
Sizzle querySelectorAll doesn't work when element id contains special characters
Reported by: | schneidh@gmail.com | Owned by: | |
---|---|---|---|
Priority: | high | Milestone: | 1.5 |
Component: | selector | Version: | 1.5 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I noticed an issue where the querySelectorAll call fails in Sizzle when the search element id contains a special character like a period. This was not an issue in jquery 1.4.3 as the id
__sizzle__was always used in that version. I implemented a simple fix where periods are escaped and that resolved my issue nicely. (Obviously all special characters will need to be escaped)
This issue is a regression caused by the fix for: http://bugs.jquery.com/ticket/7212
Attachments (0)
Change History (6)
Changed November 27, 2010 06:49PM UTC by comment:1
Changed November 27, 2010 06:58PM UTC by comment:2
My apologies, this is a duplicate of bug: http://bugs.jquery.com/ticket/7533
Changed November 27, 2010 07:50PM UTC by comment:3
component: | unfiled → selector |
---|---|
milestone: | 1.next → 1.4.5 |
priority: | undecided → high |
resolution: | → duplicate |
status: | new → closed |
Changed January 31, 2011 05:53PM UTC by comment:5
version: | 1.4.4 → 1.5 |
---|
There wasn't a 1.4.5 release, was actually 1.5.
Changed January 31, 2011 05:55PM UTC by comment:6
milestone: | 1.4.5 → 1.5 |
---|
There was no 1.4.5 release, was actually 1.5.
Here's a simple test case for this bug that worked with jquery 1.4.3/1.4.2, but does not with jquery 1.4.4: http://jsfiddle.net/73mBB/5/