Fix issue related to escaping of selectors for querySelectorAll. [#559 state:resolved]

This commit is contained in:
Andrew Dupont 2009-07-13 14:12:18 +02:00
parent 39f045d240
commit f4570f39d7
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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;
}