Fix issue related to escaping of selectors for querySelectorAll. [#559 state:resolved]
This commit is contained in:
parent
39f045d240
commit
f4570f39d7
|
@ -1,3 +1,5 @@
|
|||
* Fix issue related to escaping of selectors for querySelectorAll. [#559 state:resolved] (Jorn Holm)
|
||||
|
||||
*1.6.1_rc3* (June 16, 2009)
|
||||
|
||||
* Fixed a variety of non-ASCII chars and similar [#610 state:resolved] (T.J. Crowder)
|
||||
|
|
|
@ -170,7 +170,7 @@ var Selector = Class.create({
|
|||
if (root !== document) {
|
||||
var oldId = root.id, id = $(root).identify();
|
||||
// Escape special characters in the ID.
|
||||
id = id.replace(/[\.:]/g, "\\$0");
|
||||
id = id.replace(/[\.:]/g, "\\$1");
|
||||
e = "#" + id + " " + e;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue