diff --git a/Source/Element/Element.js b/Source/Element/Element.js index 8687decaf..39d8787e9 100644 --- a/Source/Element/Element.js +++ b/Source/Element/Element.js @@ -219,7 +219,7 @@ Document.implement({ var types = { string: function(id, nocash, doc){ - id = Slick.find(doc, '#' + id); + id = Slick.find(doc, '#' + id.replace(/(\W)/g, '\\$1')); return (id) ? types.element(id, nocash) : null; }, @@ -606,7 +606,7 @@ Element.implement({ }, getElementById: function(id){ - return document.id(Slick.find(this, '#' + id)); + return document.id(Slick.find(this, '#' + ('' + id).replace(/(\W)/g, '\\$1'))); }, getSelected: function(){ diff --git a/Specs b/Specs index ead3498f1..938660a2c 160000 --- a/Specs +++ b/Specs @@ -1 +1 @@ -Subproject commit ead3498f10712ee8b0e71cd108b85dcd4bf110cd +Subproject commit 938660a2c4a920522c43a3d8658ac338fa7c7caa