whitespace = "[\\x20\\t\\r\\n\\f]";
characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+"
identifier = characterEncoding.replace( "w" , "w#" )
attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace + "*(?:([*^$|!~]?=)" + whitespace + "*(?:([‘\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]"
pseudos = ":(" + characterEncoding + ")(?:\\((([‘\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)"
rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" )
rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]‘\"]*?)" + whitespace + "*\\]" , "g" )
JQuery_2.1.0_日记 5.4 Sizzle选择器(二),布布扣,bubuko.com
JQuery_2.1.0_日记 5.4 Sizzle选择器(二)
原文:http://blog.csdn.net/songzheng_741/article/details/25001555