diff --git a/sizzle.js b/sizzle.js index 4669d603..65dec045 100644 --- a/sizzle.js +++ b/sizzle.js @@ -534,7 +534,7 @@ var Expr = Sizzle.selectors = { } // Handle if an un-quoted value was used - match[4] = match[5] != null ? match[5] : match[4]; + match[4] = match[4] || match[5]; if ( match[2] === "~=" ) { match[4] = " " + match[4] + " ";