Opened 14 years ago
Closed 12 years ago
#4681 closed bug (fixed)
Tabs: _sanitizeSelector needs to escape '.'
Reported by: | liangent | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.9.0 |
Component: | ui.tabs | Version: | 1.7.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
45 _sanitizeSelector: function(hash) { 46 return hash.replace(/:/g, '\\:'); // we need this because an id may contain a ":" 47 },
return hash.replace(/:/g, '\\:');
should be changed into something like return hash.replace(/([:\.])/g, '\\$1');
. because dots can also cause problems.
Change History (6)
comment:1 Changed 13 years ago by
Milestone: | TBD → 1.8 |
---|
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
Status: | new → open |
---|
Verified for jQuery UI 1.8.11. See duplicate bug for test case in jsFiddle and fix.
comment:5 Changed 12 years ago by
Summary: | _sanitizeSelector needs to escape '.' → Tabs: _sanitizeSelector needs to escape '.' |
---|
comment:6 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Tabs: Escape all special characters when sanitizing hash selectors. Fixes #4681 - Tabs: _sanitizeSelector needs to escape '.'.
Changeset: 5f10fa6511ae1965088926217776692a3f5663cb
Note: See
TracTickets for help on using
tickets.
#6786 is a duplicate of this ticket.