Skip to main content

Bug Tracker

Side navigation

#15114 closed bug (worksforme)

Opened May 28, 2014 07:38PM UTC

Closed May 29, 2014 02:34PM UTC

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: nalini.mahadik7@gmail.com
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 );

Attachments (0)
Change History (2)

Changed May 28, 2014 07:49PM UTC by Jquerylearner comment:1

It works well now. I replaced containsNoCase to contains.

Changed May 29, 2014 02:34PM UTC by timmywil comment:2

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