This project is archived and is in readonly mode.

#60 ✓invalid
Thomas Aylott

a[href|=#value] does not match value (includes proposed solution)

Reported by Thomas Aylott | May 28th, 2008 @ 10:06 AM | in 2.0 (closed)

Originally posted on Trac by versatil

Original Trac Ticket

Description

The attribute selector for matching hyphen-separated values does not work for values preceded by a hash symbol. I played around with it a bit and the following change worked fine for me.

Replace the following in Selectors.js

return [(tag) ? tag[1] : '*', (id) ? id[1] : false];

with:

if(id && selector.test(/=#/)) id = false;
return [(tag) ? tag[1] : '*', (id) ? id[1] : false];

Trac Attachments

Trac Comments

Changed 1 month ago by versatil



                  Changed 1 month ago by versatil

          summary
              changed from a[href|=#value] does not match value to a[href|=#value] does not match value 

          summary
              changed from a[href|=#value] does not match value to a[href|=#value] does not match value 
        
      

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

Tags

Pages