#728 ✓resolved
Joschi Kuphal

Selector.findElements() / ID replacement problems in FF 3.5 / Safari 4

Reported by Joschi Kuphal | June 29th, 2009 @ 02:14 PM | in 1.6.1

When using FF 3.5 or Safari 4 there seems to be a problem with the regex replacement of id attribute values that contain dots or colons inside the method Selector.findElements().

Obviously (at least) those browsers won't substitute the subpattern $0 (older browsers will do it though). The seems to exist since version 1.6.0.3.

A simple testcase can be found here.

A possible solution could be changing the line 3338 (1.6.1 RC3) from

id = id.replace(/[\.:]/g, "\\$0");

to

id = id.replace(/([\.:])/g, "\\$1");

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

Referenced by

Pages