Bug Tracker

Opened 8 years ago

Closed 8 years ago

#15114 closed bug (worksforme)

Error: Syntax error, unrecognized expression: unsupported pseudo: containsNoCase

Reported by: Jquerylearner Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.11.0
Keywords: Cc: [email protected]
Blocked by: Blocking:

Description

I am using following jquery function in Firefox Mozila.

jQuery.expr:?.containsNoCase = function(el, i, m) {

var search = m[3]; if (!search) return false; return eval('/' + search + '/i').test($(el).text());

};

Below is the error message I can see using Firebug. Error: Syntax error, unrecognized expression: unsupported pseudo: containsNoCase throw new Error( "Syntax error, unrecognized expression: " + msg );

Change History (2)

comment:1 Changed 8 years ago by Jquerylearner

It works well now. I replaced containsNoCase to contains.

comment:2 Changed 8 years ago by timmywil

Resolution: worksforme
Status: newclosed

Works for me:

http://jsbin.com/yuyaqabi/1/edit

But, there's a better syntax for creating pseudos now:

http://jsbin.com/kofix/2/edit

Note: See TracTickets for help on using tickets.