Why do functional pseudos such as :not() and :has() allow quoted arguments?
This isn’t specific to :not(…) and :has(…) selectors- actually, all pseudos in Sizzle allow for quoted arguments. The pattern for pseudos’ arguments is defined as: pseudos = “:(” + characterEncoding + “)(?:\\((?:([‘\”])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:” + attributes + “)|[^:]|\\\\.)*|.*))\\)|)” Which can be found on line 91 of sizzle.js as of 831c9c48… Let’s add some indentation to that, to … Read more