dianping/cat · error · Error

Syntax error, unrecognized expression: {msg}

Error message

Syntax error, unrecognized expression: {msg}

What it means

Error "Syntax error, unrecognized expression: {msg}" thrown in dianping/cat.

Source

Thrown at cat-home/src/main/webapp/assets/js/uncompressed/jquery.js:1437

	}

	var fn = Expr.attrHandle[ name.toLowerCase() ],
		// Don't get fooled by Object.prototype properties (jQuery #13807)
		val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
			fn( elem, name, !documentIsHTML ) :
			undefined;

	return val !== undefined ?
		val :
		support.attributes || !documentIsHTML ?
			elem.getAttribute( name ) :
			(val = elem.getAttributeNode(name)) && val.specified ?
				val.value :
				null;
};

Sizzle.error = function( msg ) {
	throw new Error( "Syntax error, unrecognized expression: " + msg );
};

/**
 * Document sorting and removing duplicates
 * @param {ArrayLike} results
 */
Sizzle.uniqueSort = function( results ) {
	var elem,
		duplicates = [],
		j = 0,
		i = 0;

	// Unless we *know* we can detect duplicates, assume their presence
	hasDuplicate = !support.detectDuplicates;
	sortInput = !support.sortStable && results.slice( 0 );
	results.sort( sortOrder );

	if ( hasDuplicate ) {

View on GitHub (pinned to e815e74d4c)

Solutions

  1. Check the selector string for typos or unsupported pseudo-selectors.
  2. Escape special characters in the selector with \\.
  3. Upgrade jQuery if the selector uses syntax not supported by the bundled Sizzle version.

When it happens

Trigger: Triggered when a jQuery/Sizzle selector string is malformed, e.g. unclosed attribute brackets, unsupported pseudo-selectors, or invalid CSS syntax passed to $().

Common situations: See trigger scenarios.


AI-assisted analysis of dianping/cat@e815e74d4c (2026-08-14). Data as JSON: /api/errors/77622dc2752e7679. Report an issue: GitHub.