Bug Tracker

Opened 16 years ago

Closed 15 years ago

#1445 closed bug (invalid)

last jQuery parse RegExp problems with some id or IE

Reported by: Andrea Giammarchi Owned by:
Priority: minor Milestone: 1.2.2
Component: core Version: 1.1.3
Keywords: RegExp, dotted, id Cc:
Blocked by: Blocking:


RegExp used is not correct, IE6 gives me an error (looks for range between chars around "-") while in some case it doesn't work as expected.

element.id = "69-some_name.cmdview";

This id is not found.

Temporary double fix (works in my case):

jQuery.parse[3] = new RegExp("^([:.#]*)(" + (jQuery.chars = jQuery.browser.safari && jQuery.browser.version < "3.0.0" ? "\\w" : "(?:[\\w\u0128-\uFFFF*_\\-.]|\\\\.)" ) + "+)");

Change History (1)

comment:1 Changed 15 years ago by davidserduke

Resolution: invalid
Status: newclosed

This id is using invalid characters from a jQuery perspective. A '.' means a class is after it. These characters must be escaped for jQuery to find them. Please see the FAQ for more information:


Note: See TracTickets for help on using tickets.