Opened 9 years ago
Closed 9 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 9 years ago by
comment:2 Changed 9 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
Works for me:
http://jsbin.com/yuyaqabi/1/edit
But, there's a better syntax for creating pseudos now:
Note: See
TracTickets for help on using
tickets.
It works well now. I replaced containsNoCase to contains.