#559 ✓resolved

Escape CSS selector before passing to querySelectorAll

Reported by fxtentacle | February 19th, 2009 @ 05:33 PM | in 1.6.1

if i have:

<div id="a:b"> <div/> </div>

then doing $('a:b').select('div') will cause a DOM Exception 12 inside the select call

the problem is that querySelectorAll gets something like '#a:b div' as a parameter which it doesnt like. (apparently querySelectorAll has a problem with ':' )

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