Bug Tracker

Modify

Ticket #3698 (closed enhancement: fixed)

Opened 5 years ago

Last modified 3 years ago

Selector enhancement

Reported by: shazam Owned by:
Priority: minor Milestone: 1.3
Component: selector Version: 1.2.6
Keywords: ~= operator regexp Cc: shazam
Blocking: Blocked by:

Description

Enhance ~= operator (which is supported but not documented and works exactly like *= operator) so that it can handle regular expressions.

It works fine, the diff is attached

Attachments

selector.diff Download (1.2 KB) - added by shazam 5 years ago.
diff based on rev 5962

Change History

Changed 5 years ago by shazam

diff based on rev 5962

comment:1 Changed 5 years ago by shazam

Needs type change from bug to enhancement... sorry

comment:2 Changed 5 years ago by shazam

...It works fine as long as you don't use '/' caracter in pattern...

comment:3 Changed 5 years ago by cloudream

By designed.

And won't fixes in 1.3

comment:4 Changed 5 years ago by shazam

Do you mean "by design"? I don't think so! Or, please, tell me how to do.

Being able to match attributes values with a regular expression might be very useful in XML parsing.

I think you misunderstood my post.

comment:5 Changed 5 years ago by flesler

  • Cc shazam added

I think this was requested in the past at jquery-dev. Can you ask for feedback at  jQuery's google group ?

Then we'll see. You can link to this ticket if you will.

comment:6 Changed 4 years ago by kswedberg

  • Type changed from bug to enhancement

comment:7 Changed 4 years ago by shazam

This ticket might now be closed as it targetted jQuery1.2.6.

A new ticket with a new diff is opened for jQuery1.3.1  http://dev.jquery.com/ticket/3951

comment:8 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

The word-match feature was added/fixed in 1.3. The RegExp feature is left for enhancement #3951.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.