This project is archived and is in readonly mode.

#646 ✓resolved
JeanLucPicard2

Selectors.js problems (attribute selector etc.)

Reported by JeanLucPicard2 | April 22nd, 2009 @ 08:15 PM | in 2.0 (closed)

Hi,

I encountered a few problems with the MooTools Selectors.js matching attribute values containing white-spaces, comma, number signs (#) etc.

I created a bugfix (patch file attached) based on the Selectors.js file of MooTools 1.2.1, which will now match selectors of the following form (hopefully ;-) correctly:

idid

id\id

id.id

id\:id

id\ id

id\\ id

.klass .klas\s .klas.s .klas\:s

[title=ab] [title='a b'] [title='a,b'] [title='#a.b'] [title='a"b'] [title="a'b"]

idi\ d.klas.s

iidi\ d.klas.s[title='#a.b, #b.a']

Comments and changes to this ticket

Create your profile

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

Shared Ticket Bins

People watching this ticket

Attachments

Pages