Search and Top Navigation
#6786 closed bug (duplicate)
Opened December 27, 2010 07:48PM UTC
Closed February 28, 2011 03:43PM UTC
Last modified February 28, 2011 03:43PM UTC
ui:tabs breaks when tab links contain dot
| Reported by: | fsologuren | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.9.0 |
| Component: | ui.tabs | Version: | 1.8.7 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
Same problem that #2715, but developer only fixed problems with ':', not with '.'. Period also needs to be escaped in CSS selectors.
Preview: http://jsfiddle.net/qhSgY/2/
Suggestion:
_sanitizeSelector: function( hash ) {
// we need this because an id may contain a ":"
- return hash.replace( /:/g, "\\\\:" );
+ return hash.replace( /:/g, "\\\\:" ).replace( /\\./g, "\\\\\\." );
},
_cookie: function() {
A fix working http://jsfiddle.net/9Mst9/2/