dianping/cat · error · Error
Syntax error, unrecognized expression:
Error message
Syntax error, unrecognized expression:
What it means
Error "Syntax error, unrecognized expression: " thrown in dianping/cat.
Source
Thrown at cat-home/src/main/webapp/js/jquery-1.7.1.js:4180
// Improper expression
if ( expr === old ) {
if ( anyFound == null ) {
Sizzle.error( expr );
} else {
break;
}
}
old = expr;
}
return curLoop;
};
Sizzle.error = function( msg ) {
throw new Error( "Syntax error, unrecognized expression: " + msg );
};
/**
* Utility function for retreiving the text value of an array of DOM nodes
* @param {Array|Element} elem
*/
var getText = Sizzle.getText = function( elem ) {
var i, node,
nodeType = elem.nodeType,
ret = "";
if ( nodeType ) {
if ( nodeType === 1 || nodeType === 9 ) {
// Use textContent || innerText for elements
if ( typeof elem.textContent === 'string' ) {
return elem.textContent;
} else if ( typeof elem.innerText === 'string' ) {
// Replace IE's carriage returnsView on GitHub (pinned to e815e74d4c)
Solutions
- Check the selector string for typos or unsupported pseudo-selectors.
- Escape special characters in the selector with \\.
- Upgrade jQuery if the selector uses syntax not supported by this version.
When it happens
Trigger: Triggered when a jQuery 1.7.1/Sizzle selector string is malformed, e.g. unclosed attribute brackets or unsupported pseudo-selectors passed to $().
Common situations: See trigger scenarios.
AI-assisted analysis of dianping/cat@e815e74d4c (2026-08-14).
Data as JSON: /api/errors/b9d4e2191e2c7187.
Report an issue: GitHub.